Kaynağa Gözat

Remove redundant Boolean call

bubble
HelderSepu 6 yıl önce
ebeveyn
işleme
034ebb021c
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. +3
    -3
      src/core/utils.js

+ 3
- 3
src/core/utils.js Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet