Skip to content

Commit

Permalink
Revert "updatehub: Fix race condition in GetState"
Browse files Browse the repository at this point in the history
This reverts commit 5de10ab.
  • Loading branch information
gustavosbarreto authored and otavio committed Jul 12, 2018
1 parent 1522401 commit b80d770
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions updatehub/updatehub.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@ func (uh *UpdateHub) Cancel(nextState State) {
}

func (uh *UpdateHub) GetState() State {
uh.stateMutex.Lock()
defer uh.stateMutex.Unlock()

return uh.state
}

Expand Down

0 comments on commit b80d770

Please sign in to comment.