Remove returns from event listeners
This commit is contained in:
parent
a2b6731bf2
commit
cc7395eea8
15 changed files with 34 additions and 36 deletions
|
@ -61,14 +61,14 @@ process.on('uncaughtException', function (error) {
|
|||
dialog = require('electron').dialog
|
||||
stack = (ref = error.stack) != null ? ref : error.name + ': ' + error.message
|
||||
message = 'Uncaught Exception:\n' + stack
|
||||
return dialog.showErrorBox('A JavaScript error occurred in the main process', message)
|
||||
dialog.showErrorBox('A JavaScript error occurred in the main process', message)
|
||||
})
|
||||
|
||||
// Emit 'exit' event on quit.
|
||||
var app = require('electron').app
|
||||
|
||||
app.on('quit', function (event, exitCode) {
|
||||
return process.emit('exit', exitCode)
|
||||
process.emit('exit', exitCode)
|
||||
})
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue