Skip to content

Commit

Permalink
feat: Remove format for error message
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <bob@vibioh.fr>
  • Loading branch information
ViBiOh committed Aug 14, 2024
1 parent 9863c0e commit 938b81a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/renderer/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ func NewSuccessMessage(format string, a ...any) Message {
return newMessage(defaultMessageKey, "success", format, a...)
}

func NewErrorMessage(format string, a ...any) Message {
return newMessage(defaultMessageKey, "error", format, a...)
func NewErrorMessage(format string) Message {
return newMessage(defaultMessageKey, "error", format)

Check failure on line 105 in pkg/renderer/model.go

View workflow job for this annotation

GitHub Actions / Build

printf: non-constant format string in call to github.com/ViBiOh/httputils/v4/pkg/renderer.newMessage (govet)
}

func NewKeyErrorMessage(key, format string, a ...any) Message {
Expand Down

0 comments on commit 938b81a

Please sign in to comment.