that can never be null

This commit is contained in:
Leijurv 2019-04-16 10:20:23 -07:00
parent 96414b37f3
commit f49df63183
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -186,7 +186,7 @@ public abstract class AbstractNodeCostSearch implements IPathFinder, Helper {
}
protected Optional<IPath> bestSoFar(boolean logInfo, int numNodes) {
if (startNode == null || bestSoFar == null) {
if (startNode == null) {
return Optional.empty();
}
double bestDist = 0;