Skip to content

Commit 2eb666c

Browse files
author
Aaron Lehmann
committed
Fix lint issue in TestCommitCompression
Signed-off-by: Aaron Lehmann <[email protected]>
1 parent 873e545 commit 2eb666c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

commit_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,8 @@ func TestCommitCompression(t *testing.T) {
323323
if compressor.expectError {
324324
require.Errorf(t, err, "committing oci layout %q", imageName)
325325
return
326-
} else {
327-
require.NoErrorf(t, err, "committing oci layout %q", imageName)
328326
}
327+
require.NoErrorf(t, err, "committing oci layout %q", imageName)
329328
src, err := ref.NewImageSource(ctx, &testSystemContext)
330329
require.NoErrorf(t, err, "reading oci layout %q", imageName)
331330
defer src.Close()

0 commit comments

Comments
 (0)