Skip to content

Commit e85ad48

Browse files
author
Zhen
committed
Refine the code after code review
1 parent ea40da8 commit e85ad48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo4j/v1/routing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def update_routing_table(self):
241241
for router in copy_of_routers:
242242
if router in initial_routers:
243243
initial_routers.remove(router)
244-
if len(initial_routers) != 0:
244+
if initial_routers:
245245
if self.update_routing_table_with_routers(initial_routers):
246246
return
247247

0 commit comments

Comments
 (0)