From e921122df8229ad506b505f796afbbbcfa9bab59 Mon Sep 17 00:00:00 2001 From: Gauravudia Date: Mon, 15 Apr 2024 11:04:19 +0530 Subject: [PATCH] fix: no-case-declarations --- src/v0/destinations/mp/transform.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v0/destinations/mp/transform.js b/src/v0/destinations/mp/transform.js index 43e3c4b376..195c42fbee 100644 --- a/src/v0/destinations/mp/transform.js +++ b/src/v0/destinations/mp/transform.js @@ -86,8 +86,7 @@ const responseBuilderSimple = (payload, message, eventType, destConfig) => { }; break; } - case 'merge': - // eslint-disable-next-line no-case-declarations + case 'merge': { const credentials = setImportCredentials(destConfig); response.endpoint = credentials.endpoint; response.headers = credentials.headers; @@ -96,6 +95,7 @@ const responseBuilderSimple = (payload, message, eventType, destConfig) => { strict: credentials.params.strict, }; break; + } default: response.endpoint = dataResidency === 'eu' ? `${BASE_ENDPOINT_EU}/engage/` : `${BASE_ENDPOINT}/engage/`;