minor: whitespacing
This commit is contained in:
parent
4cf9210bf7
commit
a3e4a9061a
1
main.go
1
main.go
@ -45,6 +45,7 @@ func (bv ByVotes) Len() int {
|
|||||||
func (bv ByVotes) Swap(i, j int) {
|
func (bv ByVotes) Swap(i, j int) {
|
||||||
bv[i], bv[j] = bv[j], bv[i]
|
bv[i], bv[j] = bv[j], bv[i]
|
||||||
}
|
}
|
||||||
|
|
||||||
func (bv ByVotes) Less(i, j int) bool {
|
func (bv ByVotes) Less(i, j int) bool {
|
||||||
return float64(bv[i].Up-bv[i].Down) > float64(bv[j].Up-bv[j].Down)
|
return float64(bv[i].Up-bv[i].Down) > float64(bv[j].Up-bv[j].Down)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user