Skip to content

Commit

Permalink
(minor) cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Jan 31, 2011
1 parent 402e309 commit 93da10b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bin/vows
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,8 @@ if (! options.watch) {
var files = (specFileExt.test(file) ? [file] : paths(testFolder)).map(function (p) {
return path.join(process.cwd(), p);
}).map(function (p) {
var cache = (require.main.moduleCache) ? require.main.moduleCache : require.cache;
if(cache[p]) {
delete(cache[p]);
}
var cache = require.main.moduleCache || require.cache;
if (cache[p]) { delete(cache[p]) }
return p;
}).map(function (p) {
return p.replace(fileExt, '');
Expand Down

0 comments on commit 93da10b

Please sign in to comment.