fix(aa): ineffective assignment
This commit is contained in:
parent
ff5ff965cd
commit
228d3b653c
12 changed files with 39 additions and 20 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue