refactor: drop usage of _.isObject

This commit is contained in:
Justin Beckwith 2018-11-09 17:02:48 -08:00
parent b422ac5eaf
commit 7cba96910c
1 changed files with 1 additions and 1 deletions

View File

@ -868,7 +868,7 @@ var defaultHandler = {
* names to method implementation for the provided service. * names to method implementation for the provided service.
*/ */
Server.prototype.addService = function(service, implementation) { Server.prototype.addService = function(service, implementation) {
if (!_.isObject(service) || !_.isObject(implementation)) { if (typeof service !== 'object' || typeof implementation !== 'object') {
throw new Error('addService requires two objects as arguments'); throw new Error('addService requires two objects as arguments');
} }
if (_.keys(service).length === 0) { if (_.keys(service).length === 0) {