Skip to content

Commit

Permalink
Merge pull request grpc#10083 from murgatroid99/node_lodash_3_compat_…
Browse files Browse the repository at this point in the history
…again

Change argument validation in Server#addService
  • Loading branch information
murgatroid99 authored Mar 10, 2017
2 parents a85e7d4 + 9d68158 commit b60e6ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ var defaultHandler = {
* method implementation for the provided service.
*/
Server.prototype.addService = function(service, implementation) {
if (!_.isObjectLike(service) || !_.isObjectLike(implementation)) {
if (!_.isObject(service) || !_.isObject(implementation)) {
throw new Error('addService requires two objects as arguments');
}
if (_.keys(service).length === 0) {
Expand Down

0 comments on commit b60e6ac

Please sign in to comment.