Skip to content

Commit

Permalink
pm: code style change in if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
kyriediculous committed Apr 8, 2021
1 parent b4797d7 commit 7355dff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pm/sendermonitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,7 @@ func (sm *LocalSenderMonitor) watchPoolSizeChange() {
glog.Error(err)
continue
case <-sink:
poolSize := sm.tm.GetTranscoderPoolSize()
if poolSize.Cmp(lastPoolSize) != 0 {
if poolSize := sm.tm.GetTranscoderPoolSize(); poolSize.Cmp(lastPoolSize) != 0 {
sm.handlePoolSizeChange()
lastPoolSize = poolSize
}
Expand Down

0 comments on commit 7355dff

Please sign in to comment.