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,