Explorar el Código

Don't set default false in boolEnvConfig

DarthSim hace 6 años
padre
commit
ab36da55f8
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. 0 1
      config.go

+ 0 - 1
config.go

@@ -36,7 +36,6 @@ func strEnvConfig(s *string, name string) {
 }
 
 func boolEnvConfig(b *bool, name string) {
-	*b = false
 	if env, err := strconv.ParseBool(os.Getenv(name)); err == nil {
 		*b = env
 	}