From ea8c3da169b26448b41a54fed64c6aa889c75d3f Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Mon, 27 Jan 2025 18:55:28 +0100 Subject: [PATCH] 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. --- .../Endpoints/WorkflowDefinitions/BulkPublish/Endpoint.cs | 2 +- .../Elsa.Workflows.Management/Services/WorkflowValidator.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/Elsa.Workflows.Api/Endpoints/WorkflowDefinitions/BulkPublish/Endpoint.cs b/src/modules/Elsa.Workflows.Api/Endpoints/WorkflowDefinitions/BulkPublish/Endpoint.cs index 1c36f7fb1..309ff4c9d 100644 --- a/src/modules/Elsa.Workflows.Api/Endpoints/WorkflowDefinitions/BulkPublish/Endpoint.cs +++ b/src/modules/Elsa.Workflows.Api/Endpoints/WorkflowDefinitions/BulkPublish/Endpoint.cs @@ -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); } } \ No newline at end of file diff --git a/src/modules/Elsa.Workflows.Management/Services/WorkflowValidator.cs b/src/modules/Elsa.Workflows.Management/Services/WorkflowValidator.cs index ed43c2bad..666a60856 100644 --- a/src/modules/Elsa.Workflows.Management/Services/WorkflowValidator.cs +++ b/src/modules/Elsa.Workflows.Management/Services/WorkflowValidator.cs @@ -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;