Remove redundant Boolean call
This commit is contained in:
@@ -188,11 +188,11 @@ export function formatXml (xml) {
|
|||||||
fn = function(ln) {
|
fn = function(ln) {
|
||||||
var fromTo, padding, type
|
var fromTo, padding, type
|
||||||
|
|
||||||
if (Boolean(ln.match(/<.+\/>/))) {
|
if (ln.match(/<.+\/>/)) {
|
||||||
type = "single"
|
type = "single"
|
||||||
} else if (Boolean(ln.match(/<\/.+>/))) {
|
} else if (ln.match(/<\/.+>/)) {
|
||||||
type = "closing"
|
type = "closing"
|
||||||
} else if (Boolean(ln.match(/<[^!?].*>/))) {
|
} else if (ln.match(/<[^!?].*>/)) {
|
||||||
type = "opening"
|
type = "opening"
|
||||||
} else {
|
} else {
|
||||||
type = "other"
|
type = "other"
|
||||||
|
|||||||
Reference in New Issue
Block a user