Skip to content

Commit

Permalink
EntryModel: Remove redundant local variable
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Miller <[email protected]>
  • Loading branch information
marco-miller committed Sep 21, 2021
1 parent dc4b93d commit ece0b6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tsp/entry_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ def __init__(self, params, model_type=ModelType.XY_TREE):
'''
self.entries = []
if ENTRIES_KEY in params:
entries = params.get(ENTRIES_KEY)
for entry in entries:
for entry in params.get(ENTRIES_KEY):
if model_type == ModelType.TIME_GRAPH_TREE:
self.entries.append(TimeGraphEntry(entry))
else:
Expand Down

0 comments on commit ece0b6e

Please sign in to comment.