feat(linter): enable errcheck linter in golangci-lint (#4158)

This commit is contained in:
João Pereira
2023-11-21 11:57:34 +00:00
committed by GitHub
36 changed files with 243 additions and 66 deletions

View File

@@ -139,7 +139,10 @@ func (pbs *proxyBlobStore) ServeBlob(ctx context.Context, w http.ResponseWriter,
}
if pbs.scheduler != nil && pbs.ttl != nil {
pbs.scheduler.AddBlob(blobRef, *pbs.ttl)
if err := pbs.scheduler.AddBlob(blobRef, *pbs.ttl); err != nil {
dcontext.GetLogger(ctx).Errorf("Error adding blob: %s", err)
return err
}
}
return nil