Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
hhatto committed Apr 11, 2020
1 parent 06bfc5a commit ddc1fc4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions autopep8.py
Expand Up @@ -3778,11 +3778,10 @@ def parse_args(arguments, apply_config=False):
parser.error('--max-line-length must be greater than 0')

if args.select:
args.select = _expand_codes(_split_comma_separated(args.select),
(
_split_comma_separated(args.ignore)
if args.ignore else []
))
args.select = _expand_codes(
_split_comma_separated(args.select),
(_split_comma_separated(args.ignore) if args.ignore else [])
)

if args.ignore:
args.ignore = _split_comma_separated(args.ignore)
Expand Down

0 comments on commit ddc1fc4

Please sign in to comment.