From aca4214e0331eaf03ea38f7f2bcb22737ab62c4a Mon Sep 17 00:00:00 2001 From: Rob Wilson Date: Thu, 3 May 2018 10:17:30 +0100 Subject: [PATCH] remove unnecessary function calls --- plugin.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/plugin.go b/plugin.go index 65a27ea..26332a6 100644 --- a/plugin.go +++ b/plugin.go @@ -211,9 +211,9 @@ func initCommand(config Config) *exec.Cmd { var command string if config.TfInAutomation { - command = fmt.Sprintf("TF_IN_AUTOMATION=true terraform") + command = "TF_IN_AUTOMATION=true terraform" } else { - command = fmt.Sprintf("terraform") + command = "terraform" } return exec.Command( @@ -252,9 +252,9 @@ func tfApply(config Config) *exec.Cmd { args = append(args, "plan.tfout") var command string if config.TfInAutomation { - command = fmt.Sprintf("TF_IN_AUTOMATION=true terraform") + command = "TF_IN_AUTOMATION=true terraform" } else { - command = fmt.Sprintf("terraform") + command = "terraform" } return exec.Command( command, @@ -281,9 +281,9 @@ func tfDestroy(config Config) *exec.Cmd { args = append(args, "-force") var command string if config.TfInAutomation { - command = fmt.Sprintf("TF_IN_AUTOMATION=true terraform") + command = "TF_IN_AUTOMATION=true terraform" } else { - command = fmt.Sprintf("terraform") + command = "terraform" } return exec.Command( command, @@ -323,9 +323,9 @@ func tfPlan(config Config, destroy bool) *exec.Cmd { } var command string if config.TfInAutomation { - command = fmt.Sprintf("TF_IN_AUTOMATION=true terraform") + command = "TF_IN_AUTOMATION=true terraform" } else { - command = fmt.Sprintf("terraform") + command = "terraform" } return exec.Command( command, @@ -346,9 +346,9 @@ func tfValidate(config Config) *exec.Cmd { } var command string if config.TfInAutomation { - command = fmt.Sprintf("TF_IN_AUTOMATION=true terraform") + command = "TF_IN_AUTOMATION=true terraform" } else { - command = fmt.Sprintf("terraform") + command = "terraform" } return exec.Command( command,