Skip to content

Commit

Permalink
util: simplify file creation
Browse files Browse the repository at this point in the history
  • Loading branch information
liamstask committed Jan 11, 2013
1 parent b1edd0e commit d42a8fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
// common routines

func writeTemplateToFile(path string, t *template.Template, data interface{}) (string, error) {
f, e := os.OpenFile(path, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644)
f, e := os.Create(path)
if e != nil {
return "", e
}
Expand Down

0 comments on commit d42a8fe

Please sign in to comment.