Skip to content

Commit

Permalink
chore: remove unused console.log
Browse files Browse the repository at this point in the history
there is an if statement to get a variable which is not used or printed, I guess it can be skiped
  • Loading branch information
Francisco committed Jan 9, 2023
1 parent a3044e6 commit 80da08e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/printer.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ export const printRoutes = (routesMap, options) => {
.flat().length;

for (const [index, route] of sortedRoutes.entries()) {
if (options.group) {
const basePath = `/${route.split('/')[1]}`;
const isGroupBreak =
index > 0 && !sortedRoutes[index - 1]?.startsWith(basePath);
if (isGroupBreak) console.log();
}

if (canPrintRoute('GET', route)) printRoute('GET', route);
if (canPrintRoute('POST', route)) printRoute('POST', route);
Expand Down

0 comments on commit 80da08e

Please sign in to comment.