Bläddra i källkod

Remove redundant Boolean call

bubble
HelderSepu 6 år sedan
förälder
incheckning
034ebb021c
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. +3
    -3
      src/core/utils.js

+ 3
- 3
src/core/utils.js Visa fil

@@ -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"


Laddar…
Avbryt
Spara