fix: check key existance correctly

This commit is contained in:
2021-10-12 08:55:42 +02:00
parent ca3c5fef0f
commit e2128ea5b6

View File

@ -46,7 +46,7 @@ type App struct {
// StackName gets what the docker safe stack name is for the app
func (a App) StackName() string {
if a.Env["STACK_NAME"] != "" {
if _, exists := a.Env["STACK_NAME"]; exists {
return a.Env["STACK_NAME"]
}
return SanitiseAppName(a.Name)