From e2128ea5b671e6fc81b7f89cd6a76ed544ff2776 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Tue, 12 Oct 2021 08:55:42 +0200 Subject: [PATCH] fix: check key existance correctly --- pkg/config/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/app.go b/pkg/config/app.go index b246f47c9..c9143bd07 100644 --- a/pkg/config/app.go +++ b/pkg/config/app.go @@ -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)