Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* [ringo-fs] Fixed getStat().

  • Loading branch information...
commit b14190416ec74177adf5186f14ef984ff682f2c6 1 parent 77df784
@keeto authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Source/engines/ringo/0.5.0/fs.js
View
2  Source/engines/ringo/0.5.0/fs.js
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.