From 1c934ff2491d4c4ac9fb54ecfba4bb7363cf8e81 Mon Sep 17 00:00:00 2001 From: Brian Miller Date: Wed, 6 Nov 2024 09:04:23 -0600 Subject: [PATCH] fix lint error --- .../middleware/get-advertising-post-as-native-story.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/mindful/marko-web/middleware/get-advertising-post-as-native-story.js b/packages/mindful/marko-web/middleware/get-advertising-post-as-native-story.js index d5839f77f..dc71dac03 100644 --- a/packages/mindful/marko-web/middleware/get-advertising-post-as-native-story.js +++ b/packages/mindful/marko-web/middleware/get-advertising-post-as-native-story.js @@ -33,8 +33,7 @@ module.exports = (app, { // account for redirecting with all of the queryParams const newUrl = req.query && Object.keys(req.query).length !== 0 ? `${storyURL.pathname}?${new URLSearchParams(req.query).toString()}` - : storyURL.pathname - ; + : storyURL.pathname; res.redirect(301, newUrl); return; }