removed callback from downloadStream method

This commit is contained in:
Jury D'Ambros 2015-02-03 09:36:41 +00:00
parent b3f0d757c6
commit 38e1503c30
1 changed files with 3 additions and 4 deletions

View File

@ -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);
};
/**