Skip to content

Commit 84d7e21

Browse files
committed
fix lint issue
1 parent 29c0dd4 commit 84d7e21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/lindenmayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const shortestPath = (nodes) => {
1717
if (visited[edge12Key]) {
1818
const result = nearestUnvisitedNode(i + 1, nodes, visited, graph)
1919

20-
if (unvisitedNode != null) {
20+
if (result != null) {
2121
const shortestSubPath = graph.bfsShortestPath(
2222
node1Key,
2323
result.node.toString(),

0 commit comments

Comments
 (0)