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
|
||||
* @returns {Stream} Stream for downloading
|
||||
*/
|
||||
StorageService.prototype.downloadStream = function (container, file, options, cb) {
|
||||
if (!cb && typeof options === 'function') {
|
||||
cb = options;
|
||||
StorageService.prototype.downloadStream = function (container, file, options) {
|
||||
if (typeof options === 'function') {
|
||||
options = {};
|
||||
}
|
||||
options = options || {};
|
||||
|
@ -149,7 +148,7 @@ StorageService.prototype.downloadStream = function (container, file, options, cb
|
|||
options.remote = file;
|
||||
}
|
||||
|
||||
return this.client.download(options, cb);
|
||||
return this.client.download(options);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue