fix: linter fix.
This commit is contained in:
parent
d00f204cc5
commit
07b7f5c13d
4 changed files with 5 additions and 6 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue