removed callback from downloadStream method
This commit is contained in:
parent
b3f0d757c6
commit
38e1503c30
|
@ -136,9 +136,8 @@ StorageService.prototype.uploadStream = function (container, file, options) {
|
||||||
* @param {String|Object} err Error string or object
|
* @param {String|Object} err Error string or object
|
||||||
* @returns {Stream} Stream for downloading
|
* @returns {Stream} Stream for downloading
|
||||||
*/
|
*/
|
||||||
StorageService.prototype.downloadStream = function (container, file, options, cb) {
|
StorageService.prototype.downloadStream = function (container, file, options) {
|
||||||
if (!cb && typeof options === 'function') {
|
if (typeof options === 'function') {
|
||||||
cb = options;
|
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
options = options || {};
|
options = options || {};
|
||||||
|
@ -149,7 +148,7 @@ StorageService.prototype.downloadStream = function (container, file, options, cb
|
||||||
options.remote = file;
|
options.remote = file;
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.client.download(options, cb);
|
return this.client.download(options);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue