Преглед изворни кода

Adjust remote auth disabled check syntax

Jonathon Reinhart пре 4 година
родитељ
комит
3debf4127d
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      config.go

+ 1 - 2
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")
 		}