Merge pull request #636 from JustinBeckwith/assign

refactor: replace _.assign with Object.assign
This commit is contained in:
Michael Lumish 2018-11-15 15:03:03 -08:00 committed by GitHub
commit fd082c642d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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];