1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00

chore: remove try catch not need it

This commit is contained in:
Juan Picado 2021-05-22 14:49:11 +02:00
parent 8434cc550f
commit 2d7d8143e9

@ -102,12 +102,8 @@ export default function (config, auth, storage) {
});
router.get('/', function (req, res, next) {
try {
renderHTML(config, manifest, manifestFiles, req, res);
debug('render root');
} catch {
next(new Error('boom'));
}
renderHTML(config, manifest, manifestFiles, req, res);
debug('render root');
});
return router;