1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-29 08:22:11 +02:00

Don't set default false in boolEnvConfig

This commit is contained in:
DarthSim 2019-05-28 17:38:05 +06:00
parent 9e0a563d81
commit ab36da55f8

View File

@ -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
}