From 02d4c5bda5f93a21c15d96db5e6e0b1fa5f18b3c Mon Sep 17 00:00:00 2001 From: Aras Abbasi Date: Fri, 24 Apr 2026 14:44:37 +0200 Subject: [PATCH] fix: typo on accessing arguments variable for parameter check --- lib/api/event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/event.js b/lib/api/event.js index 4c1be38..f5d5d33 100644 --- a/lib/api/event.js +++ b/lib/api/event.js @@ -118,7 +118,7 @@ function get(eventId, callback){ * ``` */ function query(start, end, parameters, callback){ - if(arguments.length < 4 && typeof argument[2] === "function"){ + if(arguments.length < 4 && typeof arguments[2] === "function"){ callback = parameters; parameters = {}; }