Skip to content

Commit f1dca12

Browse files
Fix linter warnings
`golangci-lint` showed warnings for using an "omitempty" on a struct type (which does not have any effect) and an unknown linter "golint". These are fixed by this change.
1 parent 1a887b2 commit f1dca12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/provider/cisco/nxos/grpc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var (
1919

2020
// GRPC represents the gRPC configuration on a NX-OS device.
2121
type GRPC struct {
22-
Cert Option[string] `json:"cert,omitempty"`
22+
Cert Option[string] `json:"cert,omitzero"`
2323
CertClientRoot string `json:"certClientRoot,omitempty"`
2424
Port int32 `json:"port"`
2525
UseVrf string `json:"useVrf,omitempty"`

test/e2e/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"os/exec"
1313
"strings"
1414

15-
. "github.com/onsi/ginkgo/v2" //nolint:golint,revive
15+
. "github.com/onsi/ginkgo/v2" //nolint:revive
1616
)
1717

1818
const (

0 commit comments

Comments
 (0)