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 14, 2022
1 parent ddf54e1 commit 97db717
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 97db717

Please sign in to comment.