gofix -r mapdelete

R=golang-dev, r, adg, r, cw
CC=golang-dev
https://golang.org/cl/5266045
This commit is contained in:
Russ Cox 2011-10-18 09:56:34 -04:00
parent 7242052bc7
commit 313c8224d5
28 changed files with 40 additions and 35 deletions

View file

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