Skip to content

Missing default Clause in Switch Statement for PreparePluginParameters method #563

@ziagham

Description

@ziagham

What version of FlowSynx?

1.2.1

Describe the bug

The method PreparePluginParameters contains a switch statement without a default clause.
File: src/FlowSynx.Infrastructure/Workflow/WorkflowTaskExecutor.cs line: 213

Add a 'default' clause to this 'switch' statement.

Current Code

switch (value)
{
    case JObject jObject:
        ...
        break;

    case JArray jArray:
        ...
        break;
}

Proposed Fix

Add a default clause to handle all unhandled types and silence the warning:

switch (value)
{
    case JObject jObject:
        ...
        break;

    case JArray jArray:
        ...
        break;

    default:
        // No action needed for other types
        break;
}

Acceptance Criteria

  • The PreparePluginParameters method includes a default clause in its switch statement.
  • Code passes all existing tests.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions