From cff2aaafffdf3c0285d57572f51b607ac21c1ad7 Mon Sep 17 00:00:00 2001 From: Greyson Dehn Date: Thu, 22 Dec 2016 11:36:40 -0600 Subject: [PATCH] Limit var scope --- plugin.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin.go b/plugin.go index 7109ed5..036864c 100644 --- a/plugin.go +++ b/plugin.go @@ -54,9 +54,8 @@ func (p Plugin) Exec() error { exportSecrets(p.Config.Secrets) } - var overridesFileName string if len(p.Config.Submodules) != 0 { - overridesFileName = submoduleOverride(p.Config.Submodules) + overridesFileName := submoduleOverride(p.Config.Submodules) if overridesFileName != "" { defer os.Remove(overridesFileName)