From dbd89905c811b64ef5f310ef95b4887c0f6f0a48 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Tue, 28 Jan 2025 11:40:14 +0100 Subject: [PATCH] Remove redundant PreviousSubStatus assignment in workflow context The PreviousSubStatus assignment was removed as it was unused and unnecessary. This cleanup simplifies the code and ensures focus only on relevant functionality. --- .../Elsa.Workflows.Core/Contexts/WorkflowExecutionContext.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/Elsa.Workflows.Core/Contexts/WorkflowExecutionContext.cs b/src/modules/Elsa.Workflows.Core/Contexts/WorkflowExecutionContext.cs index 9c7ed3910..d2d561213 100644 --- a/src/modules/Elsa.Workflows.Core/Contexts/WorkflowExecutionContext.cs +++ b/src/modules/Elsa.Workflows.Core/Contexts/WorkflowExecutionContext.cs @@ -513,8 +513,7 @@ public partial class WorkflowExecutionContext : IExecutionContext { if (!ValidateStatusTransition()) throw new($"Cannot transition from {SubStatus} to {subStatus}"); - - PreviousSubStatus = SubStatus; + SubStatus = subStatus; UpdatedAt = SystemClock.UtcNow;