From 034ebb021cf65d9dc72f141e181f4909edcab390 Mon Sep 17 00:00:00 2001 From: HelderSepu Date: Wed, 1 Nov 2017 22:00:28 -0400 Subject: [PATCH] Remove redundant Boolean call --- src/core/utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/utils.js b/src/core/utils.js index ab36a3b4..6f72b9c0 100644 --- a/src/core/utils.js +++ b/src/core/utils.js @@ -188,11 +188,11 @@ export function formatXml (xml) { fn = function(ln) { var fromTo, padding, type - if (Boolean(ln.match(/<.+\/>/))) { + if (ln.match(/<.+\/>/)) { type = "single" - } else if (Boolean(ln.match(/<\/.+>/))) { + } else if (ln.match(/<\/.+>/)) { type = "closing" - } else if (Boolean(ln.match(/<[^!?].*>/))) { + } else if (ln.match(/<[^!?].*>/)) { type = "opening" } else { type = "other"