From ace913f4aaa307031b9bf102b75ad7d6dfe67c56 Mon Sep 17 00:00:00 2001 From: Xinyi Feng Date: Tue, 13 Aug 2024 14:35:04 -0700 Subject: [PATCH] fix lint --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 9b0d0f2..f1e7b84 100644 --- a/src/index.js +++ b/src/index.js @@ -377,7 +377,8 @@ function createModificationsHandler( // Firing RUM event early since redirection will stop the rest of the JS execution fireRUM(type, config, pluginOptions, url); window.location.replace(url); - return null; + // eslint-disable-next-line consistent-return + return; } // eslint-disable-next-line no-await-in-loop res = await replaceInner(new URL(url, window.location.origin).pathname, el);