Skip to content

Commit 1b3b183

Browse files
committed
Lint: revive redundant-import-alias
Signed-off-by: apostasie <[email protected]>
1 parent 6f65881 commit 1b3b183

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

.golangci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ linters:
9797
# FIXME: we should enable these below
9898
- name: struct-tag
9999
disabled: true
100-
- name: redundant-import-alias
101-
disabled: true
102100
- name: empty-lines
103101
disabled: true
104102
- name: unhandled-error

pkg/api/types/image_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package types
1919
import (
2020
"io"
2121

22-
v1 "github.com/opencontainers/image-spec/specs-go/v1"
22+
"github.com/opencontainers/image-spec/specs-go/v1"
2323
)
2424

2525
// ImageListOptions specifies options for `nerdctl image list`.

pkg/imgutil/commit/commit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import (
4848
"github.com/containerd/nerdctl/v2/pkg/clientutil"
4949
"github.com/containerd/nerdctl/v2/pkg/cmd/image"
5050
"github.com/containerd/nerdctl/v2/pkg/containerutil"
51-
imgutil "github.com/containerd/nerdctl/v2/pkg/imgutil"
51+
"github.com/containerd/nerdctl/v2/pkg/imgutil"
5252
"github.com/containerd/nerdctl/v2/pkg/labels"
5353
)
5454

0 commit comments

Comments
 (0)