From 41ea1697842043de5dd814b6beddc8b31600abf4 Mon Sep 17 00:00:00 2001 From: Charlie Hess Date: Fri, 6 Jan 2017 14:18:14 -0800 Subject: [PATCH] L I N T I N G P T I I --- lib/browser/rpc-server.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/browser/rpc-server.js b/lib/browser/rpc-server.js index c67e7efb93d..38dc0b8711f 100644 --- a/lib/browser/rpc-server.js +++ b/lib/browser/rpc-server.js @@ -155,14 +155,16 @@ const rendererMissingErrorMessage = function (meta, args, callIntoRenderer) { const eventsAttached = args[0].sender._events const remoteEvents = Object.keys(eventsAttached).filter((eventName) => { - return Array.isArray(eventsAttached[eventName]) ? - eventsAttached[eventName].includes(callIntoRenderer) : - eventsAttached[eventName] === callIntoRenderer + return Array.isArray(eventsAttached[eventName]) + ? eventsAttached[eventName].includes(callIntoRenderer) + : eventsAttached[eventName] === callIntoRenderer }) if (remoteEvents && remoteEvents.length > 0) { message += `\nRemote event names:` - remoteEvents.forEach((eventName) => message += ` ${eventName} `) + remoteEvents.forEach((eventName) => { + message += ` ${eventName} ` + }) } return message