From 628dee20548d013eea2342c3f640b3832a36166e Mon Sep 17 00:00:00 2001 From: Steve Persch Date: Wed, 18 Dec 2024 11:47:52 -0600 Subject: [PATCH] prettier --- src/components/omniSidebarNav/index.js | 3 +-- src/components/omniSidebarNav/reporting.js | 20 +++++++------------- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/src/components/omniSidebarNav/index.js b/src/components/omniSidebarNav/index.js index 6bc1db8c95..d9dd25f84c 100644 --- a/src/components/omniSidebarNav/index.js +++ b/src/components/omniSidebarNav/index.js @@ -8,7 +8,6 @@ import { turnItemsIntoLinks, } from './helpers.js'; - /* Reporting debugging code. import { flattenOmniItems, @@ -27,7 +26,7 @@ const OmniSidebarNav = ({ }) => { const OmniItems = getOmniItems(); -/* Reporting debug code + /* Reporting debug code const flattenedOmniItems = flattenOmniItems(OmniItems); const results = CalculateFilteredPathsInMenu( filteredWrittenPaths, diff --git a/src/components/omniSidebarNav/reporting.js b/src/components/omniSidebarNav/reporting.js index 278815a938..a9a43cc8cf 100644 --- a/src/components/omniSidebarNav/reporting.js +++ b/src/components/omniSidebarNav/reporting.js @@ -88,24 +88,18 @@ const RegExExceptions = [ /.*\/terminus\/commands\/.*/, ]; -const exceptions = [ - 'https://certification.pantheon.io/', - '/404.html', - '/404/', -]; - - const filteredWrittenPaths = eliminateExceptions( - allWrittenPaths, - exceptions, - RegExExceptions, - ); +const exceptions = ['https://certification.pantheon.io/', '/404.html', '/404/']; +const filteredWrittenPaths = eliminateExceptions( + allWrittenPaths, + exceptions, + RegExExceptions, +); export { flattenOmniItems, InMenuOrExceptions, eliminateExceptions, CalculateFilteredPathsInMenu, - - filteredWrittenPaths + filteredWrittenPaths, };