Skip to content

Commit

Permalink
Removed comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
志宇 committed Mar 9, 2020
1 parent e0d1879 commit 7b116d0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/util/updater/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ func (u *Updater) Update() (err error) {
if !atomic.CompareAndSwapInt32(&u.updating, 0, 1) {
return ErrAlreadyStarted
}
defer func() {
// TODO(evanlinjin): Need to reset restartCtx or something.
atomic.StoreInt32(&u.updating, 0)
}()
defer atomic.StoreInt32(&u.updating, 0)

u.log.Infof("Looking for updates")

Expand Down

0 comments on commit 7b116d0

Please sign in to comment.