Selaa lähdekoodia

node: add "none" to disable watcher (#3718)

Bing Yu 1 vuosi sitten
vanhempi
sitoutus
c7756f88c4
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      node/pkg/node/url_verification.go

+ 1 - 1
node/pkg/node/url_verification.go

@@ -64,7 +64,7 @@ func RegisterFlagWithValidationOrFail(cmd *cobra.Command, name string, descripti
 
 	// Perform validation after flags are parsed
 	cobra.OnInitialize(func() {
-		if *flagValue == "" {
+		if *flagValue == "" || *flagValue == "none" {
 			return
 		}