Skip to content

Commit

Permalink
[minor refactor] More optional uses for path.exists* to fs.exists*
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Jul 7, 2012
1 parent e7664d5 commit 8359582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/common/directories-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ vows.describe('broadway/common/directories').addBatch({

var exists = false;
dirs.forEach(function (dir) {
exists = path.existsSync(dir);
exists = (fs.existsSync || path.existsSync)(dir);
});

assert.isTrue(exists);
Expand All @@ -55,7 +55,7 @@ vows.describe('broadway/common/directories').addBatch({

var exists = true;
dirs.forEach(function (dir) {
exists = path.existsSync(dir);
exists = (fs.existsSync || path.existsSync)(dir);
});

assert.isFalse(exists);
Expand Down

0 comments on commit 8359582

Please sign in to comment.