From 6fbac3ec39da0e364d7c22421033ea87f1b16bf5 Mon Sep 17 00:00:00 2001 From: Ruidy Date: Mon, 9 Sep 2024 21:15:28 +0200 Subject: [PATCH] fix linter --- internal/server/handle_api_sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/handle_api_sync.go b/internal/server/handle_api_sync.go index 45997d4..af363c1 100644 --- a/internal/server/handle_api_sync.go +++ b/internal/server/handle_api_sync.go @@ -28,7 +28,7 @@ func handleSync(bs *booking.Service) echo.HandlerFunc { bookingInfo := new(BookingInfo) err = json.Unmarshal(body, bookingInfo) if err != nil { - return c.String(http.StatusInternalServerError, fmt.Sprintf("error unmarshalling JSON: %w", err)) + return c.String(http.StatusInternalServerError, fmt.Sprintf("error unmarshalling JSON: %s", err)) } b, err := bs.ParseFromApi(bookingInfo.Content)