Skip to content

Commit 28cf1db

Browse files
author
bonesoul
committed
added descriptional comment for last change.
1 parent 0cb7de0 commit 28cf1db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Json-Rpc/Handler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public JsonResponse Handle(JsonRequest Rpc, Object RpcContext = null)
242242
var optionalParamIndex = k - 1; // the index of the optional parameter we will be currently setting a default value.
243243
parameters[paramIndex] = metadata.defaultValues[optionalParamIndex].Value; // set the default value for the optional parameter that rpc-call didn't set a value for.
244244
paramIndex++;
245-
paramCount++;
245+
paramCount++; // we need to increase the paramCount by one each time we add default-value for an optional parameter that rpc-call didn't set a value for.
246246
}
247247
}
248248
}

0 commit comments

Comments
 (0)