is not necessary to pass cb to pkgcloud

This commit is contained in:
Jury D'Ambros 2015-02-02 17:04:55 +00:00
parent 4ce675649e
commit b3f0d757c6
1 changed files with 3 additions and 4 deletions

View File

@ -112,9 +112,8 @@ StorageService.prototype.getContainer = function (container, cb) {
* @param {String|Object} err Error string or object * @param {String|Object} err Error string or object
* @returns {Stream} Stream for uploading * @returns {Stream} Stream for uploading
*/ */
StorageService.prototype.uploadStream = function (container, file, options, cb) { StorageService.prototype.uploadStream = function (container, file, options) {
if (!cb && typeof options === 'function') { if (typeof options === 'function') {
cb = options;
options = {}; options = {};
} }
options = options || {}; options = options || {};
@ -125,7 +124,7 @@ StorageService.prototype.uploadStream = function (container, file, options, cb)
options.remote = file; options.remote = file;
} }
return this.client.upload(options, cb); return this.client.upload(options);
}; };
/** /**