Skip to content

Commit e0bef0b

Browse files
Fixed lint error
Signed-off-by: shubhamsugara22 <shubhamsugara22@gmail.com>
1 parent 4cdf1e0 commit e0bef0b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

pkg/patch/patch.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func patchWithContext(ctx context.Context, ch chan error, image, reportFile, pat
8383
log.Warnf("Image name has no tag or digest, using latest as tag")
8484
imageName = reference.TagNameOnly(imageName)
8585
}
86-
var tag string
86+
var tag string
8787
var digest string
8888
if taggedName, ok := imageName.(reference.Tagged); ok {
8989
tag = taggedName.Tag()
@@ -94,7 +94,7 @@ func patchWithContext(ctx context.Context, ch chan error, image, reportFile, pat
9494
imageName, err = reference.WithDigest(imageName, digest)
9595
if err != nil {
9696
return err
97-
}
97+
}
9898
} else {
9999
log.Warnf("Image name has no tag")
100100
}
@@ -111,10 +111,10 @@ func patchWithContext(ctx context.Context, ch chan error, image, reportFile, pat
111111
return fmt.Errorf("%w with patched tag %s", err, patchedTag)
112112
}
113113
// Make sure the digest was successfully fetched earlier and is valid
114-
if digest == "" {
115-
return fmt.Errorf("failed to fetch digest for image %s", imageName)
116-
}
117-
114+
if digest == "" {
115+
return fmt.Errorf("failed to fetch digest for image %s", imageName)
116+
}
117+
118118
patchedImageName := fmt.Sprintf("%s@sha256:%s", imageName.Name(), digest)
119119

120120
// Ensure working folder exists for call to InstallUpdates

0 commit comments

Comments
 (0)