refactor: add prefer-const to .eslintrc + fix errors (#14880)
This commit is contained in:
parent
07161a8452
commit
3ad3ade828
47 changed files with 239 additions and 238 deletions
|
@ -5,7 +5,7 @@ const binding = process.atomBinding('crash_reporter')
|
|||
|
||||
const sendSync = function (channel, ...args) {
|
||||
if (process.type === 'browser') {
|
||||
let event = {}
|
||||
const event = {}
|
||||
electron.ipcMain.emit(channel, event, ...args)
|
||||
return event.returnValue
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue