diff --git a/lib/storage-service.js b/lib/storage-service.js index 79d96cd..f9ab846 100644 --- a/lib/storage-service.js +++ b/lib/storage-service.js @@ -112,9 +112,8 @@ StorageService.prototype.getContainer = function (container, cb) { * @param {String|Object} err Error string or object * @returns {Stream} Stream for uploading */ -StorageService.prototype.uploadStream = function (container, file, options, cb) { - if (!cb && typeof options === 'function') { - cb = options; +StorageService.prototype.uploadStream = function (container, file, options) { + if (typeof options === 'function') { options = {}; } options = options || {}; @@ -125,7 +124,7 @@ StorageService.prototype.uploadStream = function (container, file, options, cb) options.remote = file; } - return this.client.upload(options, cb); + return this.client.upload(options); }; /**