Switch 'apply' for 'call' in pass-through functions

This commit is contained in:
murgatroid99 2017-05-09 15:10:51 -07:00
parent 1120c75fb0
commit 5d21890b9d
1 changed files with 2 additions and 2 deletions

View File

@ -899,7 +899,7 @@ exports.makeClientConstructor = function(methods, serviceName,
* @return {Channel} The channel
*/
exports.getClientChannel = function(client) {
return Client.prototype.getChannel.apply(client);
return Client.prototype.getChannel.call(client);
};
/**
@ -915,7 +915,7 @@ exports.getClientChannel = function(client) {
* to connect.
*/
exports.waitForClientReady = function(client, deadline, callback) {
Client.prototype.waitForReady.apply(client, deadline, callback);
Client.prototype.waitForReady.call(client, deadline, callback);
};
/**