mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-04-01 02:42:23 -05:00
chore: remove try catch not need it
This commit is contained in:
parent
8434cc550f
commit
2d7d8143e9
1 changed files with 2 additions and 6 deletions
|
@ -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…
Add table
Reference in a new issue