refactor: replace _.assign with Object.assign

This commit is contained in:
Justin Beckwith 2018-11-15 12:05:56 -08:00
parent c9d4fbec0a
commit f768445771
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];