We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c71d2f commit 350d057Copy full SHA for 350d057
1 file changed
build/rewrite.go
@@ -672,10 +672,10 @@ func sortStringExprs(list []Expr) []Expr {
672
}
673
674
675
-chunk := make([]stringSortKey, j-i)
676
-for index, x := range list[i:j] {
677
- chunk[index] = makeSortKey(index, x.(*StringExpr))
678
-}
+ chunk := make([]stringSortKey, j-i)
+ for index, x := range list[i:j] {
+ chunk[index] = makeSortKey(index, x.(*StringExpr))
+ }
679
if !sort.IsSorted(byStringExpr(chunk)) || !isUniq(chunk) {
680
before := chunk[0].x.Comment().Before
681
chunk[0].x.Comment().Before = nil
0 commit comments