mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 22:32:41 +00:00
Remove unnecessary nullish coalescing operators
This commit is contained in:
@@ -477,7 +477,7 @@ app.use(async (err, req, res, next)=>{
|
|||||||
|
|
||||||
if(err.originalUrl?.startsWith('/api/')) {
|
if(err.originalUrl?.startsWith('/api/')) {
|
||||||
// console.log('API error');
|
// 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user