Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.

Commit c4ae0b0

Browse files
committed
Simplify
1 parent de57f31 commit c4ae0b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/provider/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func (c *apiClient) fileExistsSudo(d *schema.ResourceData) (bool, error) {
203203
cmd := fmt.Sprintf("test ! -f %s", path)
204204
err = session2.Run(cmd)
205205

206-
return err != nil, err
206+
return false, err
207207
}
208208

209209
return true, nil

0 commit comments

Comments
 (0)