Skip to content

Commit

Permalink
Merge 41ab438 into 0e2ec6c
Browse files Browse the repository at this point in the history
  • Loading branch information
tanopanta committed Jun 24, 2022
2 parents 0e2ec6c + 41ab438 commit f9f81af
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 f9f81af

Please sign in to comment.