Skip to content

Commit 43cad6c

Browse files
author
Rener
committed
ok flag
1 parent a1f6ff8 commit 43cad6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xmlparser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (x *XMLParser) parse() {
145145
continue
146146
}
147147

148-
if _, only := x.attrOnlyElements[element.Name]; !only {
148+
if _, ok := x.attrOnlyElements[element.Name]; !ok {
149149
element = x.getElementTree(element)
150150
}
151151
x.resultChannel <- element

0 commit comments

Comments
 (0)