Skip to content

Commit

Permalink
Merge pull request #10 from MozCloudStorage/foco
Browse files Browse the repository at this point in the history
Replace async with foco.
  • Loading branch information
weilonge committed Jun 5, 2015
2 parents 8e05abe + 44b8ce1 commit ac35615
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 1,146 deletions.
5 changes: 4 additions & 1 deletion dom/system/gonk/cloudstorage/Sample.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ Sample.getFileDownload = function (path, offset, size, cb){
var meta = this._findMeta(path);
if (meta && typeof meta === 'string') {
var result = meta.substr(offset, size);
cb(null, {data: result});
cb(null, {
data: result,
length: result.length
});
} else {
cb(null, null);
}
Expand Down
Loading

0 comments on commit ac35615

Please sign in to comment.