go: remove redundant if-err check

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2023-03-20 11:06:51 +01:00
parent 0036b24266
commit 658cac046f
5 changed files with 10 additions and 48 deletions

View file

@ -79,11 +79,7 @@ func (c *Client) PrepareWorkspace(path string, vars Variables) error {
return err
}
if err := c.writeVars(vars); err != nil {
return err
}
return nil
return c.writeVars(vars)
}
// CreateCluster creates a Constellation cluster using Terraform.
@ -303,11 +299,7 @@ func (c *Client) RemoveInstaller() {
// CleanUpWorkspace removes terraform files from the current directory.
func (c *Client) CleanUpWorkspace() error {
if err := cleanUpWorkspace(c.file, c.workingDir); err != nil {
return err
}
return nil
return cleanUpWorkspace(c.file, c.workingDir)
}
// GetExecutable returns a Terraform executable either from the local filesystem,