Skip to content

Commit

Permalink
Linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
viniarck committed Oct 22, 2021
1 parent 5010bd5 commit 3952ce5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion match.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']:
Expand Down

0 comments on commit 3952ce5

Please sign in to comment.