Skip to content

Commit

Permalink
fix:clone bug
Browse files Browse the repository at this point in the history
  • Loading branch information
livehigh committed Sep 11, 2021
1 parent 1dde7ff commit 146b82a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 0 additions & 1 deletion sdk/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit 146b82a

Please sign in to comment.