summaryrefslogtreecommitdiffstats
path: root/algorithms.py
diff options
context:
space:
mode:
Diffstat (limited to 'algorithms.py')
-rw-r--r--algorithms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/algorithms.py b/algorithms.py
index cc8d35f..7140a17 100644
--- a/algorithms.py
+++ b/algorithms.py
@@ -23,7 +23,7 @@ def get_closest_node_id(nodes, source_node):
for node_id, node in nodes.items():
length = length_haversine(source_node, node)
- if min_node == None or length < min_value:
+ if min_node is None or length < min_value:
min_node = node_id
min_value = length