diff --git a/cmd/root.go b/cmd/root.go index 01e08bb3..9a652be0 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -233,9 +233,7 @@ func quickSetup(flags *pflag.FlagSet, d pythonData) { }, } - _, noauth := getParamB(flags, "noauth") - - if noauth { + if _, noauth := getParamB(flags, "noauth"); noauth { set.AuthMethod = auth.MethodNoAuth err = d.store.Auth.Save(&auth.NoAuth{}) } else {