Skip to content

Commit

Permalink
refactor: update comment
Browse files Browse the repository at this point in the history
Signed-off-by: nikpivkin <[email protected]>
  • Loading branch information
nikpivkin committed Jan 27, 2025
1 parent e9ce12d commit b857a6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/fanal/artifact/image/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ func (a Artifact) imageSize(ctx context.Context, diffIDs []string) (int64, error
totalSize += layerSize
completedLayers += 1
// If the layer size exceeds the limit during loading, return an error immediately.
// Otherwise, if the image is fully loaded, check the size later.
// Otherwise, if the image is fully loaded, check the size later
// to possibly work with the image
if totalSize > a.artifactOption.ImageOption.MaxImageSize &&
completedLayers != len(diffIDs) {
return a.imageSizeError("uncompressed layers", totalSize)
Expand Down

0 comments on commit b857a6a

Please sign in to comment.