perf: avoid replacing dist tarball url on each call

This commit is contained in:
 Ilya Atamas
2019-04-23 16:06:45 +03:00
parent 18338eb0d7
commit 7e4e00e3d7
5 changed files with 33 additions and 17 deletions

View File

@@ -23,3 +23,12 @@ func getEnvInt(env string, def string) int {
return converted
}
func getEnvBool(env string, def string) bool {
value := getEnvString(env, def)
// TODO: handle error
converted, _ := strconv.ParseBool(value)
return converted
}