feat(aa): rename identation variables.

This commit is contained in:
Alexandre Pujol 2024-05-04 23:54:39 +01:00
parent 5943e9a24d
commit 1e79d27232
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
3 changed files with 11 additions and 11 deletions

View file

@ -61,8 +61,8 @@ func (d Dbus) Apply(opt *Option, profile string) string {
r = d.talk(opt.ArgMap)
}
aa.TemplateIndentationLevel = strings.Count(
strings.SplitN(opt.Raw, Keyword, 1)[0], aa.TemplateIndentation,
aa.IndentationLevel = strings.Count(
strings.SplitN(opt.Raw, Keyword, 1)[0], aa.Indentation,
)
generatedDbus := r.String()
lenDbus := len(generatedDbus)

View file

@ -54,8 +54,8 @@ func (d Exec) Apply(opt *Option, profileRaw string) string {
}
}
aa.TemplateIndentationLevel = strings.Count(
strings.SplitN(opt.Raw, Keyword, 1)[0], aa.TemplateIndentation,
aa.IndentationLevel = strings.Count(
strings.SplitN(opt.Raw, Keyword, 1)[0], aa.Indentation,
)
rules.Sort()
new := rules.String()