Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
FentPams committed Aug 13, 2024
1 parent a1881b1 commit ace913f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ace913f

Please sign in to comment.