Update src/Sdk/Expressions/Sdk/Functions/Case.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Allan Guigou
2025-12-12 11:40:16 -05:00
committed by GitHub
parent c217d5fc6c
commit 089a03dad2

View File

@@ -12,7 +12,7 @@ namespace GitHub.Actions.Expressions.Sdk.Functions
out ResultMemory resultMemory)
{
resultMemory = null;
// Validate argument count - must be odd (pairs of predicate-result plus default)
// Validate argument count - must be odd (pairs of predicate-result plus default)
if (Parameters.Count % 2 == 0)
{
throw new InvalidOperationException("case requires an odd number of arguments");