Skip to content

Commit

Permalink
Merge pull request #1565 from rohankhanna/issue/1564/unnecessary-else…
Browse files Browse the repository at this point in the history
…-elif

Unnecessary else / elif used after break (deepsource.io PYL-R1723)
  • Loading branch information
timothycrosley authored Oct 16, 2020
2 parents 1e38354 + 9bdc453 commit 6807cfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion isort/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def sorted_imports(
continue
next_construct = line
break
elif in_quote:
if in_quote:
next_construct = line
break

Expand Down
4 changes: 2 additions & 2 deletions isort/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ def file_contents(contents: str, config: Config = DEFAULT_CONFIG) -> ParsedConte

if import_index >= line_count:
break
else:
starting_line = in_lines[import_index]

starting_line = in_lines[import_index]

line, *end_of_line_comment = line.split("#", 1)
if ";" in line:
Expand Down

0 comments on commit 6807cfb

Please sign in to comment.