Ver a proveniência

Remove redundant Boolean call

bubble
HelderSepu há 6 anos
ascendente
cometimento
034ebb021c
1 ficheiros alterados com 3 adições e 3 eliminações
  1. +3
    -3
      src/core/utils.js

+ 3
- 3
src/core/utils.js Ver ficheiro

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


Carregando…
Cancelar
Guardar