From 517dce443b96b8ce2de0c0b8eeef8df835cce84e Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 19 Jan 2016 11:02:12 -0800 Subject: [PATCH] Remove unused errorMessage reference --- atom/browser/lib/desktop-capturer.js | 2 +- spec/api-desktop-capturer-spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/lib/desktop-capturer.js b/atom/browser/lib/desktop-capturer.js index da649df1ce0c..a4154f0c5b1c 100644 --- a/atom/browser/lib/desktop-capturer.js +++ b/atom/browser/lib/desktop-capturer.js @@ -59,7 +59,7 @@ desktopCapturer.emit = function(event, name, sources) { request = requestsQueue[i]; if (deepEqual(handledRequest.options, request.options)) { if ((ref1 = request.webContents) != null) { - ref1.send("ATOM_RENDERER_DESKTOP_CAPTURER_RESULT_" + request.id, errorMessage, result); + ref1.send("ATOM_RENDERER_DESKTOP_CAPTURER_RESULT_" + request.id, result); } } else { unhandledRequestsQueue.push(request); diff --git a/spec/api-desktop-capturer-spec.js b/spec/api-desktop-capturer-spec.js index 85f3f194b751..c3ca940e61fe 100644 --- a/spec/api-desktop-capturer-spec.js +++ b/spec/api-desktop-capturer-spec.js @@ -14,7 +14,7 @@ describe('desktopCapturer', function() { it('does not throw an error when called twice (regression)', function(done) { var callCount = 0; - var callback = function(error, sources) { + var callback = function (error, sources) { callCount++; assert.equal(error, null); assert.notEqual(sources.length, 0);