Update golangci-lint to v2.12.2 with canonical config #54

Merged
clawbot merged 19 commits from golangci-v2.12.2 into next 2026-08-10 16:12:23 +02:00
4 changed files with 4 additions and 0 deletions
Showing only changes of commit 08c4861cfc - Show all commits

View File

@@ -66,6 +66,7 @@ func (s *Handlers) HandleImageEnc() http.HandlerFunc {
return
}
defer func() { _ = resp.Content.Close() }()
// Set response headers

View File

@@ -198,6 +198,7 @@ func (f *HTTPFetcher) Fetch(ctx context.Context, url string) (*FetchResult, erro
// If we fail before returning a result, release the slot
success := false
defer func() {
if !success {
<-sem

View File

@@ -237,6 +237,7 @@ func TestMockFetcher_FetchesFile(t *testing.T) {
if err != nil {
t.Fatalf("Fetch() error = %v", err)
}
defer func() { _ = result.Content.Close() }()
if result.ContentType != contentTypeJPEG {

View File

@@ -315,6 +315,7 @@ func (s *Service) fetchAndProcess(
return nil, fmt.Errorf("upstream fetch failed: %w", err)
}
defer func() { _ = fetchResult.Content.Close() }()
// Read and validate the source content