Skip to content

Commit 4ddd6b2

Browse files
committed
Lint
1 parent 9c4abf5 commit 4ddd6b2

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

sort.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ func intoBuckets(stack []frame, a *list, p int) []frame {
105105
if b0.head != nil {
106106
stack = ontoStack(stack, &b0, p)
107107
}
108-
for i, n := min, max; i <= n; i++ {
109-
if b1[i].head != nil {
110-
stack = ontoStack(stack, &b1[i], p+1)
108+
for ch, n := min, max; ch <= n; ch++ {
109+
if b1[ch].head != nil {
110+
stack = ontoStack(stack, &b1[ch], p+1)
111111
}
112112
}
113113
return stack
@@ -160,14 +160,14 @@ func ontoStack(stack []frame, b *bucket, pos int) []frame {
160160
if top := len(stack) - 1; top >= 0 && stack[top].size == 0 && b.size == 0 {
161161
stack[top].tail.next = b.head
162162
stack[top].tail = b.tail
163-
} else {
164-
stack = append(stack, frame{
165-
head: b.head,
166-
tail: b.tail,
167-
size: b.size,
168-
pos: pos,
169-
})
170-
}
163+
return stack
164+
}
165+
stack = append(stack, frame{
166+
head: b.head,
167+
tail: b.tail,
168+
size: b.size,
169+
pos: pos,
170+
})
171171
return stack
172172
}
173173

0 commit comments

Comments
 (0)