Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jonny Schäfer
tubus
Commits
317abd88
Commit
317abd88
authored
Jan 04, 2016
by
Jonny Schäfer
Browse files
add missing checks for potential errors
parent
a8f3a265
Changes
1
Hide whitespace changes
Inline
Side-by-side
store.go
View file @
317abd88
...
...
@@ -30,12 +30,14 @@ func init() {
storeDefaultSubscriptions
=
filepath
.
Join
(
conf
,
"subscriptions"
)
exists
,
err
=
storeFileExists
(
storeDefaultSubscriptions
)
errorCare
(
err
)
if
!
exists
{
errorCare
(
storeCreateFile
(
storeDefaultSubscriptions
))
}
storeDefaultPlayer
=
filepath
.
Join
(
conf
,
"player"
)
exists
,
err
=
storeFileExists
(
storeDefaultPlayer
)
errorCare
(
err
)
if
!
exists
{
errorCare
(
storeCreateFile
(
storeDefaultPlayer
))
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment