chore(aa): rename constructor function for consistency.

This commit is contained in:
Alexandre Pujol 2024-06-20 16:34:49 +01:00
parent b0f6f15a9e
commit fe983132cd
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ func parseLineRules(isPreamble bool, input string) (string, Rules, error) {
input = strings.Replace(input, line, "", 1)
case strings.HasPrefix(tmp, VARIABLE.Tok()) && isPreamble:
r, err = newVariableFromRule(parseRule(line))
r, err = newVariable(parseRule(line))
if err != nil {
return "", nil, err
}

View File

@ -225,7 +225,7 @@ type Variable struct {
Define bool
}
func newVariableFromRule(rule rule) (Rule, error) {
func newVariable(rule rule) (Rule, error) {
var define bool
var values []string
if len(rule) < 3 {