mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
gofix -r mapdelete
R=golang-dev, r, adg, r, cw CC=golang-dev https://golang.org/cl/5266045
This commit is contained in:
parent
7242052bc7
commit
313c8224d5
28 changed files with 40 additions and 35 deletions
|
|
@ -390,7 +390,11 @@ func (p *Parser) popElement(t *EndElement) bool {
|
|||
// translations that were associated with the element we just closed.
|
||||
for p.stk != nil && p.stk.kind != stkStart {
|
||||
s := p.pop()
|
||||
p.ns[s.name.Local] = s.name.Space, s.ok
|
||||
if s.ok {
|
||||
p.ns[s.name.Local] = s.name.Space
|
||||
} else {
|
||||
delete(p.ns, s.name.Local)
|
||||
}
|
||||
}
|
||||
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue