Fix zero arguments error

This commit is contained in:
Pontus N 2022-10-13 15:17:18 +02:00
parent cf40d2a892
commit 9f58eebfe1

View File

@ -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
}