Skip to content

Commit f0979c2

Browse files
authored
Unlint
1 parent 1d8604e commit f0979c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

immutable.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ func build(g Iterator, transpose bool) *Immutable {
5656
sort.Slice(h.edges[v], func(i, j int) bool {
5757
if e := h.edges[v]; e[i].vertex == e[j].vertex {
5858
return e[i].cost < e[j].cost
59+
} else {
60+
return e[i].vertex < e[j].vertex
5961
}
60-
return e[i].vertex < e[j].vertex
6162
})
6263
}
6364
for v, neighbors := range h.edges {

0 commit comments

Comments
 (0)