diff --git a/config.go b/config.go index fdc7394..bdcb54e 100644 --- a/config.go +++ b/config.go @@ -91,8 +91,7 @@ func setupRemoteAuth() { logger := log.WithField("remote_auth", *remoteAuthStr) // Remote auth disabled? - switch *remoteAuthStr { - case "", "none": + if *remoteAuthStr == "" || *remoteAuthStr == "none" { if *remoteUser != "" { logger.Fatal("remote_user given but not used") }