Skip to content

Commit f198f77

Browse files
committed
update golangci-lint to v1.49.0
Also remove "nolint" comments for deadcode, which is deprecated, and removed from the defaults. Signed-off-by: Sebastiaan van Stijn <[email protected]> (cherry picked from commit 8b5df7d) Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent e6179af commit f198f77

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

oci/utils_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func getDevices(path, containerPath string) ([]specs.LinuxDevice, error) {
127127

128128
// TODO consider adding these consts to the OCI runtime-spec.
129129
const (
130-
wildcardDevice = "a" //nolint:deadcode,nolintlint,unused,varcheck // currently unused, but should be included when upstreaming to OCI runtime-spec.
130+
wildcardDevice = "a" //nolint:nolintlint,unused,varcheck // currently unused, but should be included when upstreaming to OCI runtime-spec.
131131
blockDevice = "b"
132132
charDevice = "c" // or "u"
133133
fifoDevice = "p"

pkg/progress/escape.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ package progress
1919
const (
2020
escape = "\x1b"
2121
reset = escape + "[0m"
22-
red = escape + "[31m" //nolint:deadcode,nolintlint,unused,varcheck
22+
red = escape + "[31m" //nolint:nolintlint,unused,varcheck
2323
green = escape + "[32m"
2424
)

0 commit comments

Comments
 (0)