Skip to content

Commit

Permalink
* [ringo-fs] Fixed getStat().
Browse files Browse the repository at this point in the history
  • Loading branch information
keeto committed Jan 17, 2011
1 parent 77df784 commit b141904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/engines/ringo/0.5.0/fs.js
Expand Up @@ -96,7 +96,7 @@ var _File = exports.File = new Class({
var path = this.$path,
size = fs.size(path),
modified = fs.lastModified(path);
if (size !== undefined && modified !== undefined) this.onStat({size: size, modified: modified.getTime()});
if (size !== undefined && modified !== undefined) return this.onStat({size: size, modified: modified.getTime()});
throw new Error('Cannot read stats.');
} catch(e){
this.onStatError(e);
Expand Down

0 comments on commit b141904

Please sign in to comment.