Skip to content

Commit

Permalink
Fix variable name collision with import name (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xBAADF00D authored and strk committed Nov 12, 2016
1 parent 747bdce commit cddfff0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tree_entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ func (tes Entries) Less(i, j int) bool {
t1, t2 := tes[i], tes[j]
var k int
for k = 0; k < len(sorter)-1; k++ {
sort := sorter[k]
s := sorter[k]
switch {
case sort(t1, t2):
case s(t1, t2):
return true
case sort(t2, t1):
case s(t2, t1):
return false
}
}
Expand Down

0 comments on commit cddfff0

Please sign in to comment.