Skip to content

Commit ca3d9d1

Browse files
committed
Add comments to empty block to satisfy linter
1 parent 4c729af commit ca3d9d1

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

server/server.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ const startServer = function (params) {
122122
let npm
123123
try {
124124
npm = JSON.parse(stdout)
125-
} catch (error) {}
125+
} catch (error) {
126+
// ignore parse errors
127+
}
126128
return done(null, { plugin, pkg, npm })
127129
})
128130
}
@@ -239,7 +241,9 @@ const startServer = function (params) {
239241
let npm
240242
try {
241243
npm = JSON.parse(stdout)
242-
} catch (error) {}
244+
} catch (error) {
245+
// ignore parse errors
246+
}
243247
if (err) {
244248
return res.status(400).json({ error: 'server unable to install plugin', npm, stderr })
245249
} else {

0 commit comments

Comments
 (0)