chore: remove unused catch bindings (#16121)

This commit is contained in:
ZYSzys 2019-02-21 17:26:07 +08:00 committed by Cheng Zhao
parent 08f7d60da4
commit a40d826b11
7 changed files with 12 additions and 11 deletions

View file

@ -94,7 +94,7 @@ exports.checkForUpdate = function (updateURL, callback) {
// Last line of output is the JSON details about the releases
const json = stdout.trim().split('\n').pop()
update = (ref = JSON.parse(json)) != null ? (ref1 = ref.releasesToApply) != null ? typeof ref1.pop === 'function' ? ref1.pop() : void 0 : void 0 : void 0
} catch (jsonError) {
} catch {
// Disabled for backwards compatibility:
// eslint-disable-next-line standard/no-callback-literal
return callback(`Invalid result:\n${stdout}`)
@ -113,7 +113,7 @@ exports.supported = function () {
try {
fs.accessSync(updateExe, fs.R_OK)
return true
} catch (error) {
} catch {
return false
}
}