From adc726ec28734fef12f1fd4648a128d151d92524 Mon Sep 17 00:00:00 2001 From: Yashasvi Bajpai <33063622+yashasvibajpai@users.noreply.github.com> Date: Wed, 18 Oct 2023 14:37:16 +0530 Subject: [PATCH] refactor: revert formattings --- src/v0/destinations/clevertap/transform.js | 2 +- src/v0/util/index.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/v0/destinations/clevertap/transform.js b/src/v0/destinations/clevertap/transform.js index 5c1e28c086..7bbc4dc59c 100644 --- a/src/v0/destinations/clevertap/transform.js +++ b/src/v0/destinations/clevertap/transform.js @@ -419,7 +419,7 @@ const processRouterDest = (inputs, reqMetadata) => { batchedEvents.forEach((batch) => { const batchedRequest = generateClevertapBatchedPayload(batch.events, batch.destination); batchResponseList.push( - getSuccessRespEvents(batchedRequest, batch.metadata, batch.destination), + getSuccessRespEvents(batchedRequest, batch.metadata, batch.destination) ); }); } diff --git a/src/v0/util/index.js b/src/v0/util/index.js index a8f56ddbf3..7ed0d1a877 100644 --- a/src/v0/util/index.js +++ b/src/v0/util/index.js @@ -372,7 +372,7 @@ const hashToSha256 = (value) => sha256(value); // Check what type of gender and convert to f or m const getFbGenderVal = (gender) => { - if (typeof gender !== 'string') { + if (typeof (gender) !== 'string') { return null; } if ( @@ -2050,11 +2050,11 @@ const getAuthErrCategoryFromStCode = (status) => { return ''; }; -const validateEventType = (event) => { - if (!event || typeof event !== 'string') { - throw new InstrumentationError('Event is a required field and should be a string'); +const validateEventType = event => { + if(!event || typeof event !== "string") { + throw new InstrumentationError("Event is a required field and should be a string"); } -}; +} // ======================================================================== // EXPORTS // ========================================================================