Fix tests and linters

This commit is contained in:
Daniel
2022-02-02 12:48:42 +01:00
parent f2fcad4d11
commit 60d8664e7b
171 changed files with 944 additions and 874 deletions

View File

@@ -2,6 +2,7 @@ package status
import "github.com/safing/portbase/config"
// Configuration Keys.
var (
CfgEnableNetworkRatingSystemKey = "core/enableNetworkRating"
cfgEnableNetworkRatingSystem config.BoolOption
@@ -33,6 +34,6 @@ func NetworkRatingEnabled() bool {
}
// SetNetworkRating enables or disables the network rating system.
func SetNetworkRating(enabled bool) {
config.SetConfigOption(CfgEnableNetworkRatingSystemKey, enabled)
func SetNetworkRating(enabled bool) error {
return config.SetConfigOption(CfgEnableNetworkRatingSystemKey, enabled)
}