fix: linter fix.

This commit is contained in:
Alexandre Pujol 2025-04-05 00:01:27 +02:00
parent d00f204cc5
commit 07b7f5c13d
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
4 changed files with 5 additions and 6 deletions

View file

@ -111,7 +111,7 @@ func formatFile(kind kind, profile string) (string, error) {
for idx, rules := range rulesByParagraph {
aa.IndentationLevel = getIndentationLevel(paragraphs[idx])
rules = rules.Merge().Sort().Format()
profile = strings.Replace(profile, paragraphs[idx], rules.String()+"\n", -1)
profile = strings.ReplaceAll(profile, paragraphs[idx], rules.String()+"\n")
}
return profile, nil
}