From 6ce9123de04ffff961cbf1da73648679216ff637 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 2 Apr 2026 09:24:23 +0300 Subject: Fix verification gate lint and test issues --- internal/processor/processor.go | 2 +- internal/processor/processor_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/processor') diff --git a/internal/processor/processor.go b/internal/processor/processor.go index 036fa79..8536b98 100644 --- a/internal/processor/processor.go +++ b/internal/processor/processor.go @@ -793,7 +793,7 @@ func (p *Processor) newNanoBananaImageSearcher() (image.ImageSearcher, error) { } if nanoBananaConfig.APIKey == "" { - return nil, fmt.Errorf("Google API key is required for image generation") + return nil, fmt.Errorf("google API key is required for image generation") } return newNanoBananaImageClient(nanoBananaConfig), nil diff --git a/internal/processor/processor_test.go b/internal/processor/processor_test.go index b746a84..e75fa8d 100644 --- a/internal/processor/processor_test.go +++ b/internal/processor/processor_test.go @@ -212,7 +212,7 @@ func TestNewProcessor_ExplicitGeminiTranslationProvider(t *testing.T) { if err == nil { t.Fatal("Expected error for missing Google API key") } - if err.Error() != "Google API key not found" { + if err.Error() != "google API key not found" { t.Fatalf("Expected Gemini provider error, got: %v", err) } } @@ -1248,8 +1248,8 @@ func TestNewImageSearcherConfiguredNanoBananaRequiresGoogleAPIKey(t *testing.T) if err == nil { t.Fatal("expected error when Google API key is missing for Nano Banana") } - if got := err.Error(); got != "Google API key is required for image generation" { - t.Fatalf("newImageSearcher() error = %q, want %q", got, "Google API key is required for image generation") + if got := err.Error(); got != "google API key is required for image generation" { + t.Fatalf("newImageSearcher() error = %q, want %q", got, "google API key is required for image generation") } } -- cgit v1.2.3