1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Formatting fixes

This commit is contained in:
Chris Cummer
2018-06-28 17:40:36 -07:00
parent c4210f7551
commit 0b1ec96545
4 changed files with 10 additions and 12 deletions

View File

@@ -81,11 +81,10 @@ func CreateConfigFile() {
}
// If the file is empty, write to it
file, err := os.Stat(filePath)
file, _ := os.Stat(filePath)
if file.Size() == 0 {
err = ioutil.WriteFile(filePath, []byte(simpleConfig), 0644)
if err != nil {
if ioutil.WriteFile(filePath, []byte(simpleConfig), 0644) != nil {
panic(err)
}
}