Pārlūkot izejas kodu

Remove redundant Boolean call

bubble
HelderSepu pirms 6 gadiem
vecāks
revīzija
034ebb021c
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. +3
    -3
      src/core/utils.js

+ 3
- 3
src/core/utils.js Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt