fix: check key existance correctly
continuous-integration/drone/push Build is passing Details

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
1 changed files with 1 additions and 1 deletions

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)