Skip to content

Commit

Permalink
Eliminate an unnecessary else clause
Browse files Browse the repository at this point in the history
This is logically equivalent and has a more linear flow.
  • Loading branch information
pradyunsg committed Dec 13, 2022
1 parent 9d7e849 commit a22fb16
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/packaging/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ def _parse_requirement_marker(
f"Expected end or semicolon (after {after})",
span_start=span_start,
)
else:
tokenizer.read()
tokenizer.read()

marker = _parse_marker(tokenizer)
tokenizer.consume("WS")
Expand Down

0 comments on commit a22fb16

Please sign in to comment.