Skip to content

Commit

Permalink
Simplify more
Browse files Browse the repository at this point in the history
  • Loading branch information
tenstad committed May 3, 2021
1 parent c4ae0b0 commit caec48b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,7 @@ func (c *apiClient) fileExistsSudo(d *schema.ResourceData) (bool, error) {
defer session2.Close()

cmd := fmt.Sprintf("test ! -f %s", path)
err = session2.Run(cmd)

return false, err
return false, session2.Run(cmd)
}

return true, nil
Expand Down

0 comments on commit caec48b

Please sign in to comment.