Skip to content

Commit

Permalink
fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
4meepo committed Sep 19, 2024
1 parent 4ec6e2c commit 0a9d10f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tagalign.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,8 @@ func (w *Helper) processGroup(pass *analysis.Pass) {
i++
}

if w.sort {
if w.sort && StrictStyle == w.style {
sortAllKeys(w.fixedTagOrder, uniqueKeys)
}
if w.style == StrictStyle {
maxTagNum = len(uniqueKeys)
}

Expand Down Expand Up @@ -302,7 +300,6 @@ func (w *Helper) processGroup(pass *analysis.Pass) {
// tag absent in strict mode.
if !found {
minLength = 0
break
}
} else {
if j >= len(tagsGroup[i]) {
Expand Down

0 comments on commit 0a9d10f

Please sign in to comment.