From 822b0c40c020964380c5c70b8180c459db700c4c Mon Sep 17 00:00:00 2001 From: Jesse Snyder Date: Wed, 17 Jan 2024 17:35:27 -0700 Subject: [PATCH] fix lint issue - just a simple string --- internal/server/dto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/dto.go b/internal/server/dto.go index d2e734a..628382d 100644 --- a/internal/server/dto.go +++ b/internal/server/dto.go @@ -54,7 +54,7 @@ func decodeJSONBody(r *http.Request, dst interface{}) error { msg := fmt.Sprintf("Request body contains badly-formed JSON (at position %d)", syntaxError.Offset) return &malformedRequest{status: http.StatusBadRequest, message: msg} case errors.Is(err, io.ErrUnexpectedEOF): - msg := fmt.Sprintf("Request body contains badly-formed JSON") + msg := "Request body contains badly-formed JSON" return &malformedRequest{status: http.StatusBadRequest, message: msg} case errors.As(err, &unmarshalTypeError): msg := fmt.Sprintf("Request body contains an invalid value for the %q field (at position %d)", unmarshalTypeError.Field, unmarshalTypeError.Offset)