chore: apply some linter recommendations.
This commit is contained in:
parent
3b6b50cf63
commit
984cf28e61
37 changed files with 125 additions and 126 deletions
|
|
@ -124,7 +124,7 @@ func (r *Unix) Compare(other Rule) int {
|
|||
func (r *Unix) Merge(other Rule) bool {
|
||||
o, _ := other.(*Unix)
|
||||
|
||||
if !r.Qualifier.Equal(o.Qualifier) {
|
||||
if !r.Equal(o.Qualifier) {
|
||||
return false
|
||||
}
|
||||
if r.Type == o.Type && r.Protocol == o.Protocol && r.Address == o.Address &&
|
||||
|
|
@ -139,8 +139,8 @@ func (r *Unix) Merge(other Rule) bool {
|
|||
|
||||
func (r *Unix) Lengths() []int {
|
||||
return []int{
|
||||
r.Qualifier.getLenAudit(),
|
||||
r.Qualifier.getLenAccess(),
|
||||
r.getLenAudit(),
|
||||
r.getLenAccess(),
|
||||
length("", r.Access),
|
||||
length("type=", r.Type),
|
||||
length("protocol=", r.Protocol),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue