Skip to content

Commit

Permalink
use typeof instead of instanceof
Browse files Browse the repository at this point in the history
  • Loading branch information
Dakuan committed Aug 4, 2014
1 parent 71853f7 commit 1431c58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ function runCLI(argv, packageRoot, onComplete) {

var config;
if (argv.config) {
if (argv.config instanceof String) {
if (typeof argv.config === 'string') {
config = utils.loadConfigFromFile(argv.config);
} else if (argv.config instanceof Object) {
} else if (typeof argv.config === 'object') {
config = Q(utils.normalizeConfig(argv.config));
}
} else {
Expand Down

0 comments on commit 1431c58

Please sign in to comment.