Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
timonson committed May 14, 2024
1 parent c1604cb commit bc703c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function isRpcMethod(input: unknown): input is string {
}

export function isRpcParams(input: unknown): input is JsonArray | JsonObject {
return typeof input === "object" && input !== null;
return typeof input === "object" && isNotNull(input);
}

function isRpcId(input: unknown): input is RpcId {
Expand Down

0 comments on commit bc703c1

Please sign in to comment.