Remove unused errorMessage reference
This commit is contained in:
parent
c719b252cb
commit
517dce443b
2 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ desktopCapturer.emit = function(event, name, sources) {
|
||||||
request = requestsQueue[i];
|
request = requestsQueue[i];
|
||||||
if (deepEqual(handledRequest.options, request.options)) {
|
if (deepEqual(handledRequest.options, request.options)) {
|
||||||
if ((ref1 = request.webContents) != null) {
|
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 {
|
} else {
|
||||||
unhandledRequestsQueue.push(request);
|
unhandledRequestsQueue.push(request);
|
||||||
|
|
|
@ -14,7 +14,7 @@ describe('desktopCapturer', function() {
|
||||||
|
|
||||||
it('does not throw an error when called twice (regression)', function(done) {
|
it('does not throw an error when called twice (regression)', function(done) {
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
var callback = function(error, sources) {
|
var callback = function (error, sources) {
|
||||||
callCount++;
|
callCount++;
|
||||||
assert.equal(error, null);
|
assert.equal(error, null);
|
||||||
assert.notEqual(sources.length, 0);
|
assert.notEqual(sources.length, 0);
|
||||||
|
|
Loading…
Reference in a new issue