mirror of
https://github.com/github/semantic.git
synced 2024-12-20 13:21:59 +03:00
Swap the operands to compare
.
This commit is contained in:
parent
e003549ef0
commit
c9733cdc5a
@ -34,7 +34,7 @@ rws compare getLabel as bs
|
||||
let (k, nearest) = (KdTree.nearest fas kv)
|
||||
if k `Set.member` mapped
|
||||
then pure $! insert v
|
||||
else case compare v nearest of
|
||||
else case compare nearest v of
|
||||
Just y -> do
|
||||
put (Set.insert k mapped)
|
||||
pure y
|
||||
|
Loading…
Reference in New Issue
Block a user