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

View file

@ -146,6 +146,16 @@ func (c *configuration) write() error {
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()
err = userFilter.save()
if err != nil {
@ -155,8 +165,3 @@ func (c *configuration) write() error {
return nil
}
func writeAllConfigs() error {
return config.write()
}