Skip to content

Commit 7d645e7

Browse files
committed
Fix a few revive linter issues
1 parent 45643ac commit 7d645e7

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

scripts/badger-migration/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ type dryRunDB struct{}
6060

6161
func (*dryRunDB) CreateTable([]byte) error { return nil }
6262

63-
//nolint:revive // allow unused parameters to show function signature
6463
func (*dryRunDB) Set(bucket, key, value []byte) error { return nil }
6564

6665
func usage(fs *flag.FlagSet) {

test/integration/scep/internal/x509/oid.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//nolint:staticcheck,revive,gocritic // code copied from crypto/x509
5+
//nolint:staticcheck,gocritic // code copied from crypto/x509
66
package legacyx509
77

88
import (
@@ -18,9 +18,7 @@ import (
1818
"github.com/smallstep/certificates/internal/cast"
1919
)
2020

21-
var (
22-
errInvalidOID = errors.New("invalid oid")
23-
)
21+
var errInvalidOID = errors.New("invalid oid")
2422

2523
// An OID represents an ASN.1 OBJECT IDENTIFIER.
2624
type OID struct {

test/integration/scep/internal/x509/parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//nolint:revive,gocritic,errorlint,unconvert,staticcheck // code copied from crypto/x509
5+
//nolint:gocritic,errorlint,unconvert,staticcheck // code copied from crypto/x509
66
package legacyx509
77

88
import (

0 commit comments

Comments
 (0)