Skip to content

Commit f1f4f4e

Browse files
committed
Missed a refactoring that is no longer necessary
1 parent e4f7801 commit f1f4f4e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pytest_bdd/scenario.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,7 @@ def get_step_function(request: FixtureRequest, step: Step) -> StepFunctionContex
166166

167167
with inject_fixturedefs_for_step(step=step, fixturemanager=request._fixturemanager, node=request.node):
168168
try:
169-
context = cast(StepFunctionContext, request.getfixturevalue(bdd_name))
170-
return context
169+
return cast(StepFunctionContext, request.getfixturevalue(bdd_name))
171170
except pytest.FixtureLookupError:
172171
return None
173172

0 commit comments

Comments
 (0)