Skip to content

Commit

Permalink
[core] Useless lock is useless
Browse files Browse the repository at this point in the history
  • Loading branch information
teo committed Jul 9, 2024
1 parent 4413c66 commit ac23091
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/environment/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -870,8 +870,6 @@ func (envs *Manager) Ids() (keys []uid.ID) {
}

func (envs *Manager) Environment(environmentId uid.ID) (env *Environment, err error) {
envs.mu.RLock()
defer envs.mu.RUnlock()
return envs.environment(environmentId)
}

Expand Down

0 comments on commit ac23091

Please sign in to comment.