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)