chore: remove unused catch bindings (#16121)
This commit is contained in:
parent
08f7d60da4
commit
a40d826b11
7 changed files with 12 additions and 11 deletions
|
@ -12,7 +12,7 @@ const getMessages = (extensionId) => {
|
|||
try {
|
||||
const data = ipcRendererUtils.invokeSync('CHROME_GET_MESSAGES', extensionId)
|
||||
return JSON.parse(data) || {}
|
||||
} catch (error) {
|
||||
} catch {
|
||||
return {}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@ const isUnsafeEvalEnabled = function () {
|
|||
webFrame.executeJavaScript(`(${(() => {
|
||||
try {
|
||||
new Function('') // eslint-disable-line no-new,no-new-func
|
||||
} catch (err) {
|
||||
} catch {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
// - document.hidden
|
||||
// - document.visibilityState
|
||||
|
||||
const { defineProperty, defineProperties } = Object
|
||||
const { defineProperty } = Object
|
||||
|
||||
// Helper function to resolve relative url.
|
||||
const a = window.document.createElement('a')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue