Skip to content

Commit 034b6dc

Browse files
committed
Remove useless var
1 parent b5941c4 commit 034b6dc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pytest_bdd/generation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ def _show_missing_code_main(config: Config, session: Session) -> None:
184184
if scenario in scenarios:
185185
scenarios.remove(scenario)
186186
for step in scenario.steps:
187-
fixturedefs = _find_step_fixturedef(fm, item, step=step)
188-
if fixturedefs:
187+
if _find_step_fixturedef(fm, item, step=step):
189188
try:
190189
steps.remove(step)
191190
except ValueError:

0 commit comments

Comments
 (0)