Reviewer comments and suggestions incorporated.

Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
baude 2017-10-30 13:31:31 -05:00
parent 7f7ccc375f
commit c6cc205b78
14 changed files with 841 additions and 675 deletions

View file

@ -14,10 +14,10 @@ func WriteFile(content string, path string) error {
}
}
f, err := os.Create(path)
defer f.Close()
if err != nil {
return err
}
defer f.Close()
f.WriteString(content)
f.Sync()
return nil