Commit 317abd88 authored by Jonny Schäfer's avatar Jonny Schäfer
Browse files

add missing checks for potential errors

parent a8f3a265
...@@ -30,12 +30,14 @@ func init() { ...@@ -30,12 +30,14 @@ func init() {
storeDefaultSubscriptions = filepath.Join(conf, "subscriptions") storeDefaultSubscriptions = filepath.Join(conf, "subscriptions")
exists, err = storeFileExists(storeDefaultSubscriptions) exists, err = storeFileExists(storeDefaultSubscriptions)
errorCare(err)
if !exists { if !exists {
errorCare(storeCreateFile(storeDefaultSubscriptions)) errorCare(storeCreateFile(storeDefaultSubscriptions))
} }
storeDefaultPlayer = filepath.Join(conf, "player") storeDefaultPlayer = filepath.Join(conf, "player")
exists, err = storeFileExists(storeDefaultPlayer) exists, err = storeFileExists(storeDefaultPlayer)
errorCare(err)
if !exists { if !exists {
errorCare(storeCreateFile(storeDefaultPlayer)) errorCare(storeCreateFile(storeDefaultPlayer))
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment