util: simplify file creation

pull/2/head
Liam Staskawicz 2013-01-10 23:24:32 -08:00
parent b1edd0e4fa
commit d42a8fe983
1 changed files with 1 additions and 1 deletions

View File

@ -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
}