diff --git a/docs/configuration/api.md b/docs/configuration/api.md index a5d6f5f25..eda514c98 100644 --- a/docs/configuration/api.md +++ b/docs/configuration/api.md @@ -21,7 +21,7 @@ # Enable debug mode. # This will install HTTP handlers to expose Go expvars under /debug/vars and - # pprof profiling data under /debug/pprof. + # pprof profiling data under /debug/pprof/. # Additionally, the log level will be set to DEBUG. # # Optional diff --git a/docs/configuration/commons.md b/docs/configuration/commons.md index c7d80af00..082281892 100644 --- a/docs/configuration/commons.md +++ b/docs/configuration/commons.md @@ -18,7 +18,7 @@ # Enable debug mode. # This will install HTTP handlers to expose Go expvars under /debug/vars and -# pprof profiling data under /debug/pprof. +# pprof profiling data under /debug/pprof/. # The log level will be set to DEBUG unless `logLevel` is specified. # # Optional diff --git a/provider/ecs/deprecated_config.go b/provider/ecs/deprecated_config.go index 32dfcad75..06808b7f1 100644 --- a/provider/ecs/deprecated_config.go +++ b/provider/ecs/deprecated_config.go @@ -228,7 +228,7 @@ func getFuncFirstStringValueV1(labelName string, defaultValue string) func(insta // Deprecated func getFuncFirstBoolValueV1(labelName string, defaultValue bool) func(instances []ecsInstance) bool { return func(instances []ecsInstance) bool { - if len(instances) < 0 { + if len(instances) == 0 { return defaultValue } return getBoolValueV1(instances[0], labelName, defaultValue)