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
|
||||
* @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);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue