Skip to content

Commit

Permalink
[chore] Fix go vet error in error.go (#419)
Browse files Browse the repository at this point in the history
This fixes an error found by go vet in error.go where we were
putting in unnecessary format call (fmt.Fprintf) w/o any formatting
argument in it - replaced it with fmt.Fprint.
  • Loading branch information
sywhang authored Sep 2, 2024
1 parent e6a848a commit 7db0667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion error.go
Original file line number Diff line number Diff line change
@@ -186,7 +186,7 @@ func (e errInvalidInput) Error() string { return fmt.Sprint(e) }
func (e errInvalidInput) Unwrap() error { return e.Cause }

func (e errInvalidInput) writeMessage(w io.Writer, _ string) {
fmt.Fprintf(w, e.Message)
fmt.Fprint(w, e.Message)
}

func (e errInvalidInput) Format(w fmt.State, c rune) {

0 comments on commit 7db0667

Please sign in to comment.