Skip to content

Commit

Permalink
Merge pull request #2 from pmark/master
Browse files Browse the repository at this point in the history
Updated var declaration pattern.
  • Loading branch information
James Allardice committed May 27, 2013
2 parents d6506e4 + 53382e2 commit ebe1782
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ module.exports = function () {
*/
function findFile(name, dir) {
var directory = dir || process.cwd(),
filename = path.normalize(path.join(dir, name)),
parent = path.resolve(dir, "../../");
filename = path.normalize(path.join(directory, name)),
parent = path.resolve(directory, "../../");
if (fs.existsSync(filename)) {
return filename;
}
if (dir === parent) {
if (directory === parent) {
return null;
}
return findFile(name, parent);
Expand Down Expand Up @@ -76,4 +76,4 @@ module.exports = function () {

require("./app")(config);

};
};

0 comments on commit ebe1782

Please sign in to comment.