diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-02 09:24:23 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-02 09:24:23 +0300 |
| commit | 6ce9123de04ffff961cbf1da73648679216ff637 (patch) | |
| tree | 7a8c12f3499b0a62471627773fde9588a14c9261 /internal/processor | |
| parent | faee049f51a3e6125a710fae3e713638bd68dd48 (diff) | |
Fix verification gate lint and test issues
Diffstat (limited to 'internal/processor')
| -rw-r--r-- | internal/processor/processor.go | 2 | ||||
| -rw-r--r-- | internal/processor/processor_test.go | 6 |
2 files changed, 4 insertions, 4 deletions
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") } } |
