Fix ineffective break statement
This break breaks the inner select only, to break for loop we can use return from the function since there is nothing after for loop here.
@@ -174,7 +174,7 @@ func (chs *ChartChangeSync) Run(stopCh <-chan struct{}, errc chan error, wg *syn
case <-stopCh:
chs.logger.Log("stopping", "true")
- break
+ return
}
}
}()
