Skip to content

Commit

Permalink
Fix for new flake8-simplify rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoliver committed Feb 13, 2022
1 parent e5fece0 commit ccdeaf8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cylc/flow/network/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -1211,9 +1211,10 @@ async def mutator(root, info, command=None, workflows=None,
workflows = []
if exworkflows is None:
exworkflows = []
w_args = {}
w_args['workflows'] = [Tokens(w_id) for w_id in workflows]
w_args['exworkflows'] = [Tokens(w_id) for w_id in exworkflows]
w_args = {
'workflows': [Tokens(w_id) for w_id in workflows],
'exworkflows': [Tokens(w_id) for w_id in exworkflows]
}
if args.get('args', False):
args.update(args.get('args', {}))
args.pop('args')
Expand Down

0 comments on commit ccdeaf8

Please sign in to comment.