Skip to content

Commit

Permalink
Fixed file watcher bug due to upgrading node-glob.
Browse files Browse the repository at this point in the history
  • Loading branch information
airportyh committed Apr 10, 2013
1 parent 90b3aa2 commit dfb8b63
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/filewatcher.js
Expand Up @@ -69,10 +69,8 @@ FileWatcher.prototype = {
if (this.emfile) return

var self = this
, dir = process.cwd()
glob(globPattern, {silent: true}, function(err, files){
files.forEach(function(file){
file = path.join(dir, file)
if (self.isWatching(file)) return
fs.stat(file, function(err, stats){
if (err) return
Expand Down

0 comments on commit dfb8b63

Please sign in to comment.