Skip to content

Commit cddfff0

Browse files
0xBAADF00Dstrk
authored andcommitted
Fix variable name collision with import name (#5)
1 parent 747bdce commit cddfff0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tree_entry.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ func (tes Entries) Less(i, j int) bool {
9393
t1, t2 := tes[i], tes[j]
9494
var k int
9595
for k = 0; k < len(sorter)-1; k++ {
96-
sort := sorter[k]
96+
s := sorter[k]
9797
switch {
98-
case sort(t1, t2):
98+
case s(t1, t2):
9999
return true
100-
case sort(t2, t1):
100+
case s(t2, t1):
101101
return false
102102
}
103103
}

0 commit comments

Comments
 (0)