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:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user