Skip to content

Commit

Permalink
golang: remove deadcode linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Meulengracht authored and mvo5 committed Mar 9, 2023
1 parent 5d98130 commit ae6489f
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ linters:
enable:
- govet
- misspell
- deadcode
- unused
# gosimple may suggest patterns that work only with more recent Go versions
# - gosimple
Expand Down
1 change: 0 additions & 1 deletion asserts/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
type fetchProgress int

const (
//nolint:deadcode
fetchNotSeen fetchProgress = iota
fetchRetrieved
fetchSaved
Expand Down
1 change: 0 additions & 1 deletion cmd/snap-update-ns/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const (
// SquashfsMagic is the equivalent of SQUASHFS_MAGIC
SquashfsMagic = 0x73717368
// Ext4Magic is the equivalent of EXT4_SUPER_MAGIC
//nolint:deadcode
Ext4Magic = 0xef53
// TmpfsMagic is the equivalent of TMPFS_MAGIC
TmpfsMagic = 0x01021994
Expand Down
2 changes: 1 addition & 1 deletion spdx/licenses.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ package spdx
//
// jq < json/licenses.json '.licenses | .[] | select(.isOsiApproved == true) | .licenseId' | sort | sed -e 's/$/,/'
//
//nolint:deadcode,unused
//nolint:unused
var osi = []string{
"0BSD",
"AAL",
Expand Down
1 change: 0 additions & 1 deletion store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,6 @@ var (
type deviceAuthNeed int

const (
//nolint:deadcode
deviceAuthPreferred deviceAuthNeed = iota
deviceAuthCustomStoreOnly
)
Expand Down
1 change: 0 additions & 1 deletion strutil/shlex/shlex.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ const (

// Classes of rune token
const (
//nolint:deadcode
unknownRuneClass runeTokenClass = iota
spaceRuneClass
escapingQuoteRuneClass
Expand Down

0 comments on commit ae6489f

Please sign in to comment.