Skip to content

Commit

Permalink
Make it explicit that error is ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Dec 4, 2018
1 parent 08a5345 commit b3625b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/chezmoi/fs_actuator.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ func (a *FSActuator) WriteFile(name string, data []byte, perm os.FileMode, currD
if err != nil {
return err
}
defer t.Cleanup()
defer func() {
_ = t.Cleanup()
}()
if err := t.Chmod(perm); err != nil {
return err
}
Expand Down

0 comments on commit b3625b2

Please sign in to comment.