Skip to content

Commit 94ab00e

Browse files
committed
Using tuples to check actions
1 parent 8a3b154 commit 94ab00e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui24rsc/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ def main(argv=None):
222222
if a not in funcs:
223223
print('Unsupported action:', a, file=sys.stderr)
224224
return 1
225-
if a in ['diff', 'tree'] and not args.json:
225+
if a in ('diff', 'tree') and not args.json:
226226
format = 'yaml'
227-
if a in ['full', 'dots'] and not args.yaml:
227+
if a in ('full', 'dots') and not args.yaml:
228228
format = 'json'
229229
obj = funcs[a](obj)
230230

0 commit comments

Comments
 (0)