From e8c1f6b158ad084d137e6ab7843b1abba2ccd6bb Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Fri, 3 Jul 2020 12:19:33 -0700 Subject: [PATCH] chore: drop optional parentheses --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index d4f5435..099db17 100644 --- a/src/index.js +++ b/src/index.js @@ -29,7 +29,7 @@ export default function klona(x) { } if (str === '[object Set]') { - tmp = new Set(); + tmp = new Set; x.forEach(function (val) { tmp.add(klona(val)); }); @@ -37,7 +37,7 @@ export default function klona(x) { } if (str === '[object Map]') { - tmp = new Map(); + tmp = new Map; x.forEach(function (val, key) { tmp.set(klona(key), klona(val)); });