From 3952ce509e79def4e6a60e3656442ecd0d789e5d Mon Sep 17 00:00:00 2001 From: Vinicius Arcanjo Date: Fri, 22 Oct 2021 15:51:02 -0300 Subject: [PATCH] Linter fix --- main.py | 2 +- match.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index 80200f05..35c95cab 100644 --- a/main.py +++ b/main.py @@ -262,7 +262,7 @@ def _store_changed_flows(self, command, flow, switch): installed_flow = {} installed_flow['command'] = command installed_flow['flow'] = flow - should_persist_flow = True if command == "add" else False + should_persist_flow = command == "add" deleted_flows_idxs = set() serializer = FlowFactory.get_class(switch) diff --git a/match.py b/match.py index b9d1d7ca..cacd3b7f 100644 --- a/match.py +++ b/match.py @@ -112,7 +112,6 @@ def match13_no_strict(flow_to_install, stored_flow_dict): Return the flow if any fields match, otherwise, return False. """ - if 'match' not in flow_to_install or 'match' not in stored_flow_dict: return stored_flow_dict if not flow_to_install['match']: