Skip to content

Commit

Permalink
chore: bump dependencies
Browse files Browse the repository at this point in the history
chore: tweak all files to comply with updated ESLint rules
  • Loading branch information
Cherry committed Apr 12, 2020
1 parent 508a5e5 commit 96edf2b
Show file tree
Hide file tree
Showing 4 changed files with 272 additions and 172 deletions.
10 changes: 5 additions & 5 deletions lib/validate.js
@@ -1,5 +1,9 @@
'use strict';

function isObject(value){
return Object.prototype.toString.call(value) === '[object Object]';
}

module.exports = function validate(options){
if(!isObject(options)){
throw new Error('reportTo must be called with an object argument.');
Expand Down Expand Up @@ -41,8 +45,4 @@ module.exports = function validate(options){
}
});
});
};

function isObject(value){
return Object.prototype.toString.call(value) === '[object Object]';
}
};

0 comments on commit 96edf2b

Please sign in to comment.