Skip to content

Commit 2207a9d

Browse files
Copilotadamsitnik
andcommitted
Fix CS9336 redundant pattern warning in KernelFunctionFromMethod.cs
Co-authored-by: adamsitnik <6011991+adamsitnik@users.noreply.github.com> Agent-Logs-Url: https://github.com/microsoft/semantic-kernel/sessions/bf444e4d-a8ae-43df-b58c-7b45fa3d3b50
1 parent 9d5f736 commit 2207a9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/SemanticKernel.Core/Functions/KernelFunctionFromMethod.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ private static (Func<KernelFunction, Kernel, KernelArguments, CancellationToken,
720720
return value;
721721
}
722722

723-
if (converter is not null && value is not JsonElement or JsonDocument or JsonNode)
723+
if (converter is not null && value is not (JsonElement or JsonDocument or JsonNode))
724724
{
725725
try
726726
{

0 commit comments

Comments
 (0)