fix sprintfQuotedString (gocritic)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -111,7 +111,7 @@ type TableEntryObj struct {
|
||||
}
|
||||
|
||||
func (t *TableEntryObj) String() string {
|
||||
return fmt.Sprintf("%d) k:`%s` -> v:`%s` owner:`%s`\n", t.Index, t.Key, t.Value, t.Owner)
|
||||
return fmt.Sprintf("%d) k:%#q -> v:%#q owner:%#q\n", t.Index, t.Key, t.Value, t.Owner)
|
||||
}
|
||||
|
||||
// TableEndpointsResult fully typed message for proper unmarshaling on the client side
|
||||
|
||||
@@ -248,7 +248,7 @@ func TestParseWithMultilineAnnotation(t *testing.T) {
|
||||
|
||||
func assertName(t *testing.T, expected, actual string) {
|
||||
if expected != actual {
|
||||
fatalOut(t, fmt.Sprintf("expected name to be `%s`, got: %s", expected, actual))
|
||||
fatalOut(t, fmt.Sprintf("expected name to be %#q, got: %s", expected, actual))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user