Move user filter saving into writeAllConfigs()

This commit is contained in:
Eugene Bujak 2018-11-28 20:15:32 +03:00
parent 0d1478b635
commit 31f77af534
1 changed files with 10 additions and 5 deletions

View File

@ -146,6 +146,16 @@ func (c *configuration) write() error {
return err return err
} }
return nil
}
func writeAllConfigs() error {
err := config.write()
if err != nil {
log.Printf("Couldn't write config: %s", err)
return err
}
userFilter := userFilter() userFilter := userFilter()
err = userFilter.save() err = userFilter.save()
if err != nil { if err != nil {
@ -155,8 +165,3 @@ func (c *configuration) write() error {
return nil return nil
} }
func writeAllConfigs() error {
return config.write()
}