feat(aa): cleanup, fix import and add some unit tests.

This commit is contained in:
Alexandre Pujol 2024-05-05 14:19:25 +01:00
parent 3ad55927bf
commit 81f0163086
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
13 changed files with 86 additions and 5 deletions

View file

@ -131,7 +131,7 @@ func (p *Profile) Format() {
if letterI != letterJ {
// Add a new empty line between Files rule of different type
hasOwnerRule = false
p.Rules = append(p.Rules[:i], append([]Rule{&RuleBase{}}, p.Rules[i:]...)...)
p.Rules = append(p.Rules[:i], append(Rules{nil}, p.Rules[i:]...)...)
}
}
}