Skip to content

Commit

Permalink
fix: simplify
Browse files Browse the repository at this point in the history
Co-Authored-By: Will <[email protected]>
  • Loading branch information
Stebalien and willscott authored Apr 17, 2020
1 parent ea3fd05 commit d174dc3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flatfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1109,8 +1109,7 @@ func (fs *Datastore) tempFile() (*os.File, error) {
}

func (fs *Datastore) tempFileOnce() (*os.File, error) {
file, err := tempFileOnce(fs.tempPath, "temp-")
return file, err
return tempFileOnce(fs.tempPath, "temp-")
}

// only call this on directories.
Expand Down

0 comments on commit d174dc3

Please sign in to comment.