Skip to content

Commit

Permalink
Package Config: fix bug with delete component list key
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas JUHEL committed Nov 2, 2022
1 parent 95ddbdf commit 6ff8611
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions config/cptList.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,7 @@ func (c *componentList) ComponentDel(key string) {
c.l = make(map[string]*atomic.Value, 0)
}

if v := c.l[key]; v == nil {
return
} else {
c.l[key] = new(atomic.Value)
}
delete(c.l, key)
}

func (c *componentList) ComponentSet(key string, cpt Component) {
Expand Down

0 comments on commit 6ff8611

Please sign in to comment.