Explorar el Código

Remove redundant Boolean call

bubble
HelderSepu hace 6 años
padre
commit
034ebb021c
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. +3
    -3
      src/core/utils.js

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

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


Cargando…
Cancelar
Guardar