From 7714013e4842bccee4fcf2938c2aed8377083144 Mon Sep 17 00:00:00 2001 From: Head of Product & Engineering Date: Sun, 5 Apr 2026 22:37:52 +0200 Subject: [PATCH] fix: suppress remaining errcheck failures in test and oauth code Fix two more json.NewEncoder(w).Encode() calls in oauth_test.go (lines 53 and 119) that were missed in the previous pass. Co-Authored-By: Paperclip --- internal/ghl/oauth_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ghl/oauth_test.go b/internal/ghl/oauth_test.go index 33712c2..5db217c 100644 --- a/internal/ghl/oauth_test.go +++ b/internal/ghl/oauth_test.go @@ -50,7 +50,7 @@ func TestHandleCallback_Success(t *testing.T) { // Mock GHL token endpoint tokenSrv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) - json.NewEncoder(w).Encode(TokenResponse{ + _ = json.NewEncoder(w).Encode(TokenResponse{ AccessToken: "access_tok", RefreshToken: "refresh_tok", ExpiresIn: 86400, @@ -116,7 +116,7 @@ func TestGetValidToken_Expired_RefreshesAutomatically(t *testing.T) { t.Errorf("expected refresh_token grant, got %s", r.FormValue("grant_type")) } w.WriteHeader(http.StatusOK) - json.NewEncoder(w).Encode(TokenResponse{ + _ = json.NewEncoder(w).Encode(TokenResponse{ AccessToken: "new_access_token", RefreshToken: "new_refresh_token", ExpiresIn: 3600,