From 306788b1a27ab4b7b51ac19bcf01da75ccc2324b Mon Sep 17 00:00:00 2001 From: Sung Yoon Whang Date: Sun, 1 Sep 2024 15:02:19 -0700 Subject: [PATCH] [chore] Fix go vet error in error.go 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. --- error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/error.go b/error.go index 227fc35f..4a66f270 100644 --- a/error.go +++ b/error.go @@ -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) {