Ensure constant format strings in fmt calls

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan
2025-03-23 08:59:45 +02:00
parent 22618ccb11
commit eaf5bb992c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ func (c *Controller) advanceCanary(name string, namespace string) {
msg := "skipping canary run as object is suspended"
c.logger.With("canary", fmt.Sprintf("%s.%s", name, namespace)).
Debug(msg)
c.recordEventInfof(cd, msg)
c.recordEventInfof(cd, "%s", msg)
return
}
+1 -1
View File
@@ -300,7 +300,7 @@ func TestGraphiteProvider_IsOnline(t *testing.T) {
}
w.WriteHeader(test.code)
fmt.Fprintf(w, test.body)
fmt.Fprintf(w, "%s", test.body)
}))
defer ts.Close()