Skip to content

Commit

Permalink
cnitool: address golint error
Browse files Browse the repository at this point in the history
exported const EnvCNIPath should have comment (or a comment on this block) or be unexported

Signed-off-by: Tomoya Fujita <[email protected]>
  • Loading branch information
fujitatomoya committed May 3, 2022
1 parent 08f8596 commit 99eac24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cnitool/cnitool.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"github.com/containernetworking/cni/libcni"
)

// Protocol parameters are passed to the plugins via OS environment variables.
const (
EnvCNIPath = "CNI_PATH"
EnvNetDir = "NETCONFPATH"
Expand Down Expand Up @@ -59,7 +60,6 @@ func parseArgs(args string) ([][2]string, error) {
func main() {
if len(os.Args) < 4 {
usage()
return
}

netdir := os.Getenv(EnvNetDir)
Expand Down

0 comments on commit 99eac24

Please sign in to comment.