fix sprintfQuotedString (gocritic)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn committed 2026-10-19 23:30:44 +02:00
1 parent 225101cddd
commit 1c53496d5b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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
+1 -1
View File
@@ -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))
}
}