fix: check key existance correctly
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ca3c5fef0f
commit
e2128ea5b6
@ -46,7 +46,7 @@ type App struct {
|
|||||||
|
|
||||||
// StackName gets what the docker safe stack name is for the app
|
// StackName gets what the docker safe stack name is for the app
|
||||||
func (a App) StackName() string {
|
func (a App) StackName() string {
|
||||||
if a.Env["STACK_NAME"] != "" {
|
if _, exists := a.Env["STACK_NAME"]; exists {
|
||||||
return a.Env["STACK_NAME"]
|
return a.Env["STACK_NAME"]
|
||||||
}
|
}
|
||||||
return SanitiseAppName(a.Name)
|
return SanitiseAppName(a.Name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user