Skip to content

Commit d0ca7f4

Browse files
author
Hugo Osvaldo Barrera
committed
Remove innecesary conditional
1 parent e3f9bf2 commit d0ca7f4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

todoman/cli.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ def wrapper(*a, **kw):
3636
with_id_arg = click.argument('id', type=click.IntRange(min=TODO_ID_MIN))
3737

3838

39-
def _validate_lists_param(ctx, param=None, lists=None):
40-
if lists:
41-
return [_validate_list_param(ctx, name=l) for l in lists]
39+
def _validate_lists_param(ctx, param=None, lists=[]):
40+
return [_validate_list_param(ctx, name=l) for l in lists]
4241

4342

4443
def _validate_list_param(ctx, param=None, name=None):

0 commit comments

Comments
 (0)