0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Remove unnecessary nullish coalescing operators

This commit is contained in:
G.Ambatte
2023-10-29 14:16:41 +13:00
parent 85b0976082
commit 511c38dd1e

View File

@@ -477,7 +477,7 @@ app.use(async (err, req, res, next)=>{
if(err.originalUrl?.startsWith('/api/')) {
// console.log('API error');
res.status(err?.status || err?.response?.status || 500).send(err.message || err);
res.status(err.status || err.response?.status || 500).send(err.message || err);
return;
}