Unverified Commit d174dc3d authored by Steven Allen's avatar Steven Allen Committed by GitHub

fix: simplify

Co-Authored-By: default avatarWill <will.scott@protocol.ai>
parent ea3fd057
...@@ -1109,8 +1109,7 @@ func (fs *Datastore) tempFile() (*os.File, error) { ...@@ -1109,8 +1109,7 @@ func (fs *Datastore) tempFile() (*os.File, error) {
} }
func (fs *Datastore) tempFileOnce() (*os.File, error) { func (fs *Datastore) tempFileOnce() (*os.File, error) {
file, err := tempFileOnce(fs.tempPath, "temp-") return tempFileOnce(fs.tempPath, "temp-")
return file, err
} }
// only call this on directories. // only call this on directories.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment