Skip to content

Commit

Permalink
fix: temp dir to be the same as SerchDir to avoid invalid cross-devic…
Browse files Browse the repository at this point in the history
…e link (#1203) (#1241)
  • Loading branch information
tanopanta authored Jun 27, 2022
1 parent 8335df9 commit 796a346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion format/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (f *Format) format(path string) error {
}

func write(path string, contents []byte) error {
f, err := ioutil.TempFile(filepath.Split(path))
f, err := ioutil.TempFile(filepath.Dir(path), filepath.Base(path))
if err != nil {
return err
}
Expand Down

0 comments on commit 796a346

Please sign in to comment.