Skip to content

Commit

Permalink
refactor(menuData): one line status code return for select entrance a…
Browse files Browse the repository at this point in the history
…nd pickup pages
  • Loading branch information
AnthonyFuller committed Jan 22, 2025
1 parent 749cbfc commit e8a64d9
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions components/menuData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -683,10 +683,7 @@ menuDataRouter.get(
req.gameVersion,
)

if (typeof page === "number") {
res.status(page).end()
return
}
if (typeof page === "number") return res.status(page).end()

res.json(page)
},
Expand All @@ -708,10 +705,7 @@ menuDataRouter.get(
req.gameVersion,
)

if (typeof page === "number") {
res.status(page).end()
return
}
if (typeof page === "number") return res.status(page).end()

res.json(page)
},
Expand Down

0 comments on commit e8a64d9

Please sign in to comment.