Skip to content

Commit

Permalink
Remove useless var
Browse files Browse the repository at this point in the history
  • Loading branch information
youtux committed Nov 12, 2023
1 parent b5941c4 commit 034b6dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pytest_bdd/generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,7 @@ def _show_missing_code_main(config: Config, session: Session) -> None:
if scenario in scenarios:
scenarios.remove(scenario)
for step in scenario.steps:
fixturedefs = _find_step_fixturedef(fm, item, step=step)
if fixturedefs:
if _find_step_fixturedef(fm, item, step=step):
try:
steps.remove(step)
except ValueError:
Expand Down

0 comments on commit 034b6dc

Please sign in to comment.