Permalink
Browse files

Misc refactoring

  • Loading branch information...
1 parent 626d322 commit e224387eb4053611acc4c63c9ffd253193ed9f82 @tj tj committed Jul 27, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/express/view.js
View
@@ -111,8 +111,9 @@ exports.watcher = function(interval){
files.forEach(function(file){
file = dir + '/' + file;
fs.stat(file, function(err, stats){
- if (err) return;
- if (stats.isFile()) {
+ if (err) {
+ return;
+ } else if (stats.isFile()) {
watch(file);
} else if (stats.isDirectory()) {
traverse(file);

0 comments on commit e224387

Please sign in to comment.