mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-06-19 03:39:32 -04:00
go: remove redundant if-err check
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
0036b24266
commit
658cac046f
5 changed files with 10 additions and 48 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue