Skip to content

Commit 8b5c1f3

Browse files
authored
Remove dupulicated lambda: (#431)
1 parent 83551a9 commit 8b5c1f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azure/durable_functions/models/DurableOrchestrationClient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ async def terminate(self, instance_id: str, reason: str) -> None:
437437
switch_statement = {
438438
202: lambda: None, # instance in progress
439439
410: lambda: None, # instance failed or terminated
440-
404: lambda: lambda: f"No instance with ID '{instance_id}' found.",
440+
404: lambda: f"No instance with ID '{instance_id}' found.",
441441
}
442442

443443
has_error_message = switch_statement.get(

0 commit comments

Comments
 (0)