mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
chore: update golang (to 1.20.x) and golangci-linter (#1388)
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
committed by
GitHub
parent
9cc990d7ca
commit
635d07ae04
@@ -203,7 +203,6 @@ func CheckIfIndexNeedsUpdate(index *ispec.Index, desc *ispec.Descriptor,
|
||||
manifest := manifest
|
||||
if reference == manifest.Digest.String() {
|
||||
// nothing changed, so don't update
|
||||
desc = &manifest
|
||||
updateIndex = false
|
||||
|
||||
break
|
||||
@@ -213,7 +212,6 @@ func CheckIfIndexNeedsUpdate(index *ispec.Index, desc *ispec.Descriptor,
|
||||
if ok && v == reference {
|
||||
if manifest.Digest.String() == desc.Digest.String() {
|
||||
// nothing changed, so don't update
|
||||
desc = &manifest
|
||||
updateIndex = false
|
||||
|
||||
break
|
||||
|
||||
@@ -1458,7 +1458,7 @@ func (is *ObjectStorage) getOriginalBlobFromDisk(duplicateBlobs []string) (strin
|
||||
}
|
||||
|
||||
func (is *ObjectStorage) getOriginalBlob(digest godigest.Digest, duplicateBlobs []string) (string, error) {
|
||||
originalBlob := ""
|
||||
var originalBlob string
|
||||
|
||||
var err error
|
||||
|
||||
|
||||
Reference in New Issue
Block a user