-
Notifications
You must be signed in to change notification settings - Fork 26
Missing default Clause in Switch Statement for PreparePluginParameters method #563
Copy link
Copy link
Closed
Copy link
Labels
C#C# related codeC# related codebugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershacktoberfest-acceptedhelp wantedExtra attention is neededExtra attention is neededrefactoringRefactoring codeRefactoring codereliability
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C#C# related codeC# related codebugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershacktoberfest-acceptedhelp wantedExtra attention is neededExtra attention is neededrefactoringRefactoring codeRefactoring codereliability