fix(aa): ineffective assignment

This commit is contained in:
Alexandre Pujol 2024-06-23 10:57:46 +01:00
parent ff5ff965cd
commit 228d3b653c
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
12 changed files with 39 additions and 20 deletions

View file

@ -83,8 +83,10 @@ func (r RuleBase) Merge(other Rule) bool {
return false
}
func (r RuleBase) merge(other RuleBase) bool {
r.Comment += " " + other.Comment
func (r *RuleBase) merge(other RuleBase) bool {
if other.Comment != "" {
r.Comment += " " + other.Comment
}
return true
}