fix: check key existance correctly
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
decentral1se 2021-10-12 08:55:42 +02:00
parent ca3c5fef0f
commit e2128ea5b6
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

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)