chore(aa): rename constructor function for consistency.
This commit is contained in:
parent
b0f6f15a9e
commit
fe983132cd
2 changed files with 2 additions and 2 deletions
|
|
@ -90,7 +90,7 @@ func parseLineRules(isPreamble bool, input string) (string, Rules, error) {
|
||||||
input = strings.Replace(input, line, "", 1)
|
input = strings.Replace(input, line, "", 1)
|
||||||
|
|
||||||
case strings.HasPrefix(tmp, VARIABLE.Tok()) && isPreamble:
|
case strings.HasPrefix(tmp, VARIABLE.Tok()) && isPreamble:
|
||||||
r, err = newVariableFromRule(parseRule(line))
|
r, err = newVariable(parseRule(line))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", nil, err
|
return "", nil, err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -225,7 +225,7 @@ type Variable struct {
|
||||||
Define bool
|
Define bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func newVariableFromRule(rule rule) (Rule, error) {
|
func newVariable(rule rule) (Rule, error) {
|
||||||
var define bool
|
var define bool
|
||||||
var values []string
|
var values []string
|
||||||
if len(rule) < 3 {
|
if len(rule) < 3 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue