Refactor object initialization and remove unused import.

Updated the object initialization syntax for cleaner code and removed an unused import in WorkflowValidator.cs to improve code readability and maintainability.
This commit is contained in:
Sipke Schoorstra 2025-01-27 18:55:28 +01:00
parent be94a51b8c
commit ea8c3da169
2 changed files with 1 additions and 2 deletions

View file

@ -70,6 +70,6 @@ internal class BulkPublish(IWorkflowDefinitionStore store, IWorkflowDefinitionPu
updatedConsumers.AddRange(result.AffectedWorkflows.WorkflowDefinitions.Select(x => x.DefinitionId));
}
return new Response(published, alreadyPublished, notFound, skipped, updatedConsumers);
return new(published, alreadyPublished, notFound, skipped, updatedConsumers);
}
}

View file

@ -2,7 +2,6 @@ using Elsa.Mediator.Contracts;
using Elsa.Workflows.Activities;
using Elsa.Workflows.Management.Models;
using Elsa.Workflows.Management.Notifications;
using Elsa.Workflows.Management.Requests;
namespace Elsa.Workflows.Management.Services;