Skip to content

Commit

Permalink
Fix zero arguments error
Browse files Browse the repository at this point in the history
  • Loading branch information
donran committed Oct 13, 2022
1 parent cf40d2a commit 9f58eeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/headscale/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
var cfgFile string = ""

func init() {
if len(os.Args) > 1 && os.Args[1] == "version" || os.Args[1] == "mockoidc" {
if len(os.Args) > 1 && (os.Args[1] == "version" || os.Args[1] == "mockoidc") {
return
}

Expand Down

0 comments on commit 9f58eeb

Please sign in to comment.