mirror of https://github.com/grpc/grpc-node.git
Merge pull request #636 from JustinBeckwith/assign
refactor: replace _.assign with Object.assign
This commit is contained in:
commit
fd082c642d
|
@ -950,7 +950,7 @@ exports.makeClientConstructor = function(methods, serviceName,
|
|||
}
|
||||
ServiceClient.prototype.$method_names[attrs.path] = name;
|
||||
// Associate all provided attributes with the method
|
||||
_.assign(ServiceClient.prototype[name], attrs);
|
||||
Object.assign(ServiceClient.prototype[name], attrs);
|
||||
if (attrs.originalName) {
|
||||
ServiceClient.prototype[attrs.originalName] =
|
||||
ServiceClient.prototype[name];
|
||||
|
|
Loading…
Reference in New Issue