mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-09-27 20:48:56 +02:00
Small naming improvement for better clarity
This commit is contained in:
parent
da58a13058
commit
37d4325186
1 changed files with 3 additions and 3 deletions
|
@ -125,12 +125,12 @@ def remove_duplicate_points(entry: dict):
|
|||
Removes points from paths that occur twice after each other
|
||||
"""
|
||||
path: list = entry['path']
|
||||
last: list = path[0]
|
||||
previous: list = path[0]
|
||||
for i in range(len(path)-1, -1, -1):
|
||||
current: list = path[i]
|
||||
if current == last:
|
||||
if current == previous:
|
||||
path.pop(i)
|
||||
last = current
|
||||
previous = current
|
||||
|
||||
return entry
|
||||
|
||||
|
|
Loading…
Reference in a new issue