Skip to content

Commit

Permalink
ok flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Rener committed Mar 2, 2020
1 parent a1f6ff8 commit 43cad6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmlparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (x *XMLParser) parse() {
continue
}

if _, only := x.attrOnlyElements[element.Name]; !only {
if _, ok := x.attrOnlyElements[element.Name]; !ok {
element = x.getElementTree(element)
}
x.resultChannel <- element
Expand Down

0 comments on commit 43cad6c

Please sign in to comment.