Skip to content

Commit

Permalink
Merge pull request #17 from mvrhov/patch-1
Browse files Browse the repository at this point in the history
Create temporary file in same directory as the final fiel resides
  • Loading branch information
dmarkham authored Apr 19, 2019
2 parents 1cbec6c + ceea85e commit 325a6e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stringer.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func main() {
}

// Write to tmpfile first
tmpFile, err := ioutil.TempFile("", fmt.Sprintf("%s_enumer_", typs[0]))
tmpFile, err := ioutil.TempFile(dir, fmt.Sprintf("%s_enumer_", typs[0]))
if err != nil {
log.Fatalf("creating temporary file for output: %s", err)
}
Expand Down

0 comments on commit 325a6e1

Please sign in to comment.