Skip to content

Commit 4c729af

Browse files
committed
Add back empty catch blocks, not great but not new
1 parent d08cfe2 commit 4c729af

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

server/server.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const startServer = function (params) {
122122
let npm
123123
try {
124124
npm = JSON.parse(stdout)
125-
} // no parsing error handler provided
125+
} catch (error) {}
126126
return done(null, { plugin, pkg, npm })
127127
})
128128
}
@@ -239,8 +239,7 @@ const startServer = function (params) {
239239
let npm
240240
try {
241241
npm = JSON.parse(stdout)
242-
} // no parsing error handler provided
243-
242+
} catch (error) {}
244243
if (err) {
245244
return res.status(400).json({ error: 'server unable to install plugin', npm, stderr })
246245
} else {

0 commit comments

Comments
 (0)