Skip to content

Commit

Permalink
Check for errors from filesystem permissions test.
Browse files Browse the repository at this point in the history
  • Loading branch information
sean- committed Jun 30, 2016
1 parent c3e7b20 commit 7b396b1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions file_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,14 @@ func (f *FileSnapshotStore) testPermissions() error {
if err != nil {
return err
}
fh.Close()
os.Remove(path)

if err = fh.Close(); err != nil {
return err
}

if err = os.Remove(path); err != nil {
return err
}
return nil
}

Expand Down

0 comments on commit 7b396b1

Please sign in to comment.