瀏覽代碼

Remove redundant Boolean call

bubble
HelderSepu 6 年之前
父節點
當前提交
034ebb021c
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      src/core/utils.js

+ 3
- 3
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"


Loading…
取消
儲存