chore(initialize): code cleanups and gofmt

This commit is contained in:
Brandon Philips
2014-05-06 16:11:26 -07:00
parent 4e84180ad5
commit aea5ca5252
5 changed files with 22 additions and 26 deletions

View File

@@ -11,10 +11,10 @@ import (
)
type File struct {
Encoding string
Content string
Owner string
Path string
Encoding string
Content string
Owner string
Path string
RawFilePermissions string `yaml:"permissions"`
}
@@ -31,7 +31,6 @@ func (f *File) Permissions() (os.FileMode, error) {
return os.FileMode(perm), nil
}
func WriteFile(f *File) error {
if f.Encoding != "" {
return fmt.Errorf("Unable to write file with encoding %s", f.Encoding)