Fix codacy and lint issues

This commit is contained in:
braginini
2022-12-22 12:24:02 +01:00
parent e750a1a40e
commit 4f9e047e7e
9 changed files with 49 additions and 27 deletions

View File

@@ -22,7 +22,7 @@ import (
func initRulesTestData(rules ...*server.Rule) *Rules {
return &Rules{
accountManager: &mock_server.MockAccountManager{
SaveRuleFunc: func(_ string, rule *server.Rule) error {
SaveRuleFunc: func(_, _ string, rule *server.Rule) error {
if !strings.HasPrefix(rule.ID, "id-") {
rule.ID = "id-was-set"
}