Tidy up code

This commit is contained in:
BobLd
2020-03-10 13:42:45 +00:00
committed by Eliot Jones
parent 5b8a2f2e38
commit 9366aa2b37

View File

@@ -134,9 +134,7 @@
foreach (var c in paired)
{
var filter = filterFinal(pivot, c.Item1);
var maxDist = maxDistanceFunction(pivot, c.Item1);
if (filter && c.Item3 < maxDist)
if (filterFinal(pivot, c.Item1) && c.Item3 < maxDistanceFunction(pivot, c.Item1))
{
indexes[e] = c.Item2;
break;