1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

unnecessary

This commit is contained in:
Michael Ficarra 2011-12-24 15:44:51 -05:00
parent 3b3c069c3b
commit 90e0ce97e4
2 changed files with 3 additions and 3 deletions

View file

@ -217,7 +217,7 @@
return compileTimeout = wait(25, function() { return compileTimeout = wait(25, function() {
return fs.stat(source, function(err, stats) { return fs.stat(source, function(err, stats) {
if (err) return watchErr(err); if (err) return watchErr(err);
if (prevStats && (stats.size === prevStats.size && stats.mtime.getTime() === prevStats.mtime.getTime())) { if (prevStats && stats.size === prevStats.size && stats.mtime.getTime() === prevStats.mtime.getTime()) {
return rewatch(); return rewatch();
} }
prevStats = stats; prevStats = stats;

View file

@ -191,8 +191,8 @@ watch = (source, base) ->
compileTimeout = wait 25, -> compileTimeout = wait 25, ->
fs.stat source, (err, stats) -> fs.stat source, (err, stats) ->
return watchErr err if err return watchErr err if err
return rewatch() if prevStats and (stats.size is prevStats.size and return rewatch() if prevStats and stats.size is prevStats.size and
stats.mtime.getTime() is prevStats.mtime.getTime()) stats.mtime.getTime() is prevStats.mtime.getTime()
prevStats = stats prevStats = stats
fs.readFile source, (err, code) -> fs.readFile source, (err, code) ->
return watchErr err if err return watchErr err if err