refractor(aa): rename base struct from RuleBase to Base
This commit is contained in:
parent
5b73923385
commit
272072d2a5
24 changed files with 150 additions and 150 deletions
|
|
@ -9,11 +9,11 @@ const (
|
|||
)
|
||||
|
||||
type All struct {
|
||||
RuleBase
|
||||
Base
|
||||
}
|
||||
|
||||
func newAll(q Qualifier, rule rule) (Rule, error) {
|
||||
return &All{RuleBase: newBase(rule)}, nil
|
||||
return &All{Base: newBase(rule)}, nil
|
||||
}
|
||||
|
||||
func (r *All) Validate() error {
|
||||
|
|
@ -26,8 +26,8 @@ func (r *All) Compare(other Rule) int {
|
|||
|
||||
func (r *All) Merge(other Rule) bool {
|
||||
o, _ := other.(*All)
|
||||
b := &r.RuleBase
|
||||
return b.merge(o.RuleBase)
|
||||
b := &r.Base
|
||||
return b.merge(o.Base)
|
||||
}
|
||||
|
||||
func (r *All) String() string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue