mirror of
https://github.com/distribution/distribution.git
synced 2025-09-08 18:29:52 +00:00
feat(linter): enable errcheck linter in golangci-lint
Also, bump the linter version to the latest available version. Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
This commit is contained in:
@@ -77,7 +77,10 @@ func (pms proxyManifestStore) Get(ctx context.Context, dgst digest.Digest, optio
|
||||
}
|
||||
|
||||
if pms.scheduler != nil && pms.ttl != nil {
|
||||
pms.scheduler.AddManifest(repoBlob, *pms.ttl)
|
||||
if err := pms.scheduler.AddManifest(repoBlob, *pms.ttl); err != nil {
|
||||
dcontext.GetLogger(ctx).Errorf("Error adding manifest: %s", err)
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
// Ensure the manifest blob is cleaned up
|
||||
|
Reference in New Issue
Block a user