From 48bc7133440264bcc75a8983292467b13eafee14 Mon Sep 17 00:00:00 2001 From: Joydeep Biswas <3406269+joydeep-b@users.noreply.github.com> Date: Tue, 16 Oct 2018 15:07:22 -0400 Subject: [PATCH] Remove arguments from `Array#pop` call (#61) --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a60caef..beed5e3 100644 --- a/index.js +++ b/index.js @@ -83,7 +83,7 @@ module.exports = (val, opts, pad) => { return tokens.indent + value + eol; }).join('') + tokens.pad + ']'; - seen.pop(val); + seen.pop(); return expandWhiteSpace(ret); } @@ -113,7 +113,7 @@ module.exports = (val, opts, pad) => { return tokens.indent + String(key) + ': ' + value + eol; }).join('') + tokens.pad + '}'; - seen.pop(val); + seen.pop(); return expandWhiteSpace(ret); }