Skip to content

Commit 7db0667

Browse files
authored
[chore] Fix go vet error in error.go (#419)
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.
1 parent e6a848a commit 7db0667

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

error.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func (e errInvalidInput) Error() string { return fmt.Sprint(e) }
186186
func (e errInvalidInput) Unwrap() error { return e.Cause }
187187

188188
func (e errInvalidInput) writeMessage(w io.Writer, _ string) {
189-
fmt.Fprintf(w, e.Message)
189+
fmt.Fprint(w, e.Message)
190190
}
191191

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

0 commit comments

Comments
 (0)