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.
This commit is contained in:
Sipke Schoorstra 2025-01-28 11:40:14 +01:00
parent 633464eb04
commit dbd89905c8

View file

@ -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;