Skip to content

Commit

Permalink
chore: drop optional parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Jul 3, 2020
1 parent 72a460d commit e8c1f6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ export default function klona(x) {
}

if (str === '[object Set]') {
tmp = new Set();
tmp = new Set;
x.forEach(function (val) {
tmp.add(klona(val));
});
return tmp;
}

if (str === '[object Map]') {
tmp = new Map();
tmp = new Map;
x.forEach(function (val, key) {
tmp.set(klona(key), klona(val));
});
Expand Down

0 comments on commit e8c1f6b

Please sign in to comment.