Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
stevector committed Dec 18, 2024
1 parent 3575f16 commit 628dee2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
3 changes: 1 addition & 2 deletions src/components/omniSidebarNav/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
turnItemsIntoLinks,
} from './helpers.js';


/* Reporting debugging code.
import {
flattenOmniItems,
Expand All @@ -27,7 +26,7 @@ const OmniSidebarNav = ({
}) => {
const OmniItems = getOmniItems();

/* Reporting debug code
/* Reporting debug code
const flattenedOmniItems = flattenOmniItems(OmniItems);
const results = CalculateFilteredPathsInMenu(
filteredWrittenPaths,
Expand Down
20 changes: 7 additions & 13 deletions src/components/omniSidebarNav/reporting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

0 comments on commit 628dee2

Please sign in to comment.