Skip to content

Commit

Permalink
Mitigate misspell issue in Go report
Browse files Browse the repository at this point in the history
The Go report returns the combination of LF (\n) and "to" as a spelling
issue, even though one is a control sequence.

Add unnecessary string concatenation to avoid the warning.
  • Loading branch information
HeavyWombat committed Sep 5, 2020
1 parent 3ad160c commit f2b3254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ytbx_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func (matcher *nodeMatcher) Match(actual interface{}) (success bool, err error)
}

func (matcher *nodeMatcher) FailureMessage(actual interface{}) string {
return fmt.Sprintf("Expected\n\t%#v\nto be same as\n\t%#v",
return fmt.Sprintf("Expected\n\t%#v\n"+"to be same as\n\t%#v",
actual,
matcher.expected)
}
Expand Down

0 comments on commit f2b3254

Please sign in to comment.