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