mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
chore(aa): rename constructor function for consistency.
This commit is contained in:
parent
b0f6f15a9e
commit
fe983132cd
@ -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 New Issue
Block a user