Skip to content

Commit

Permalink
Remove double lock from Objects.Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Apr 6, 2022
1 parent e041a7d commit 2ce094e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions modules/engine/objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,7 @@ func (os *Objects) addmerge(attrtomerge []Attribute, obs ...*Object) {

// Attemps to merge the object into the objects
func (os *Objects) Merge(attrtomerge []Attribute, o *Object) bool {
os.lock()
result := os.merge(attrtomerge, o)
os.unlock()
return result
}

Expand Down

0 comments on commit 2ce094e

Please sign in to comment.