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
|
|
@ -26,7 +26,7 @@ func init() {
|
|||
}
|
||||
|
||||
type Capability struct {
|
||||
RuleBase
|
||||
Base
|
||||
Qualifier
|
||||
Names []string
|
||||
}
|
||||
|
|
@ -37,7 +37,7 @@ func newCapability(q Qualifier, rule rule) (Rule, error) {
|
|||
return nil, err
|
||||
}
|
||||
return &Capability{
|
||||
RuleBase: newBase(rule),
|
||||
Base: newBase(rule),
|
||||
Qualifier: q,
|
||||
Names: names,
|
||||
}, nil
|
||||
|
|
@ -45,7 +45,7 @@ func newCapability(q Qualifier, rule rule) (Rule, error) {
|
|||
|
||||
func newCapabilityFromLog(log map[string]string) Rule {
|
||||
return &Capability{
|
||||
RuleBase: newBaseFromLog(log),
|
||||
Base: newBaseFromLog(log),
|
||||
Qualifier: newQualifierFromLog(log),
|
||||
Names: Must(toValues(CAPABILITY, "name", log["capname"])),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue