is not necessary to pass cb to pkgcloud
This commit is contained in:
parent
4ce675649e
commit
b3f0d757c6
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue