diff --git a/package.json b/package.json index 707b7dc..f9628ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cos-nodejs-sdk-v5", - "version": "2.10.1", + "version": "2.10.2", "description": "cos nodejs sdk v5", "main": "index.js", "types": "index.d.ts", diff --git a/sdk/util.js b/sdk/util.js index b7231b5..ff1d7df 100644 --- a/sdk/util.js +++ b/sdk/util.js @@ -214,7 +214,6 @@ var getFileMd5 = function (readStream, callback) { }; function clone(obj) { - if (typeof obj !== 'object') return obj; return map(obj, function (v) { return typeof v === 'object' && v !== null ? clone(v) : v; });