From c7aafd63752849034c6623b0eb36c72db2975b0e Mon Sep 17 00:00:00 2001 From: Kelvin Lu Date: Fri, 12 Mar 2021 03:16:45 -0800 Subject: [PATCH] fix: remove callback from argument to function that takes no arguments --- src/amplitude-client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amplitude-client.js b/src/amplitude-client.js index c9644e95..931588c2 100644 --- a/src/amplitude-client.js +++ b/src/amplitude-client.js @@ -1353,7 +1353,7 @@ AmplitudeClient.prototype._logEvent = function _logEvent( this.saveEvents(); } - this._sendEventsIfReady(callback); + this._sendEventsIfReady(); return eventId; } catch (e) {