mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
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)
|
||||
|
||||
case strings.HasPrefix(tmp, VARIABLE.Tok()) && isPreamble:
|
||||
r, err = newVariableFromRule(parseRule(line))
|
||||
r, err = newVariable(parseRule(line))
|
||||
if err != nil {
|
||||
return "", nil, err
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue