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)
  • Loading branch information
tanopanta committed Jun 22, 2022
1 parent 0e2ec6c commit 41ab438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion format/format.go
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 41ab438

Please sign in to comment.