Skip to content

Commit 146b82a

Browse files
committed
fix:clone bug
1 parent 1dde7ff commit 146b82a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cos-nodejs-sdk-v5",
3-
"version": "2.10.1",
3+
"version": "2.10.2",
44
"description": "cos nodejs sdk v5",
55
"main": "index.js",
66
"types": "index.d.ts",

sdk/util.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ var getFileMd5 = function (readStream, callback) {
214214
};
215215

216216
function clone(obj) {
217-
if (typeof obj !== 'object') return obj;
218217
return map(obj, function (v) {
219218
return typeof v === 'object' && v !== null ? clone(v) : v;
220219
});

0 commit comments

Comments
 (0)