mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-22 21:15:35 +03:00
Move user filter saving into writeAllConfigs()
This commit is contained in:
parent
0d1478b635
commit
31f77af534
1 changed files with 10 additions and 5 deletions
15
config.go
15
config.go
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue