Skip to content

Commit c86a013

Browse files
committed
Fix linting issues
1 parent 353dd69 commit c86a013

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pkg/v1/tarball/layer.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import (
3232
"github.com/google/go-containerregistry/pkg/v1/types"
3333
)
3434

35+
// LayerCompression is an enumeration of the supported compression algorithms for tarball layers
3536
type LayerCompression comp.Compression
3637

3738
// The collection of known MediaType values.
@@ -281,9 +282,9 @@ func LayerFromOpener(opener Opener, opts ...LayerOption) (v1.Layer, error) {
281282

282283
if layer.compression == ZStd {
283284
return zstd.ReadCloserLevel(crc, layer.compressionLevel), nil
284-
} else {
285-
return ggzip.ReadCloserLevel(crc, layer.compressionLevel), nil
286285
}
286+
287+
return ggzip.ReadCloserLevel(crc, layer.compressionLevel), nil
287288
}
288289
}
289290

0 commit comments

Comments
 (0)