mirror of
https://github.com/distribution/distribution.git
synced 2025-06-28 08:18:18 +00:00
clean up code because err is always nil
Signed-off-by: zhipengzuo <zuozhipeng@baidu.com>
This commit is contained in:
parent
53e18a9d9b
commit
f361d443b7
@ -72,13 +72,8 @@ func (pbs *proxyBlobStore) serveLocal(ctx context.Context, w http.ResponseWriter
|
|||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if err == nil {
|
|
||||||
proxyMetrics.BlobPush(uint64(localDesc.Size))
|
proxyMetrics.BlobPush(uint64(localDesc.Size))
|
||||||
return true, pbs.localStore.ServeBlob(ctx, w, r, dgst)
|
return true, pbs.localStore.ServeBlob(ctx, w, r, dgst)
|
||||||
}
|
|
||||||
|
|
||||||
return false, nil
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (pbs *proxyBlobStore) storeLocal(ctx context.Context, dgst digest.Digest) error {
|
func (pbs *proxyBlobStore) storeLocal(ctx context.Context, dgst digest.Digest) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user