mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
Ensure constant format strings in fmt calls
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user