From e9ee47a7c7c7d3d1a9a40c33116729748eccfc52 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Wed, 22 Mar 2017 21:31:27 +0900 Subject: [PATCH] Fix variable name `key` may not be `DOKKU_ROOT`. --- plugins/common/common.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/common/common.go b/plugins/common/common.go index 6ea751976..31060a760 100644 --- a/plugins/common/common.go +++ b/plugins/common/common.go @@ -67,11 +67,11 @@ func VerifyAppName(appName string) (err error) { // MustGetEnv returns env variable or fails if it's not set func MustGetEnv(key string) string { - dokkuRoot := os.Getenv(key) - if dokkuRoot == "" { + value := os.Getenv(key) + if value == "" { LogFail(fmt.Sprintf("%s not set!", key)) } - return dokkuRoot + return value } // LogFail is the failure log formatter