From ece0b6e58ae3c7952bd55b0eb6417a4ebab45a83 Mon Sep 17 00:00:00 2001 From: Marco Miller Date: Tue, 14 Sep 2021 15:55:31 -0400 Subject: [PATCH] EntryModel: Remove redundant local variable Signed-off-by: Marco Miller --- tsp/entry_model.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tsp/entry_model.py b/tsp/entry_model.py index 0e9c8b8..e20cc4f 100644 --- a/tsp/entry_model.py +++ b/tsp/entry_model.py @@ -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: