[#1689] linter: Fix staticcheck warning: 'could lift into loop condition'
Change-Id: I4ff3cda54861d857740203d6994872998a22d5d5 Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
parent
c274bbeb7c
commit
2394ae6ce0
1 changed files with 1 additions and 10 deletions
|
@ -28,16 +28,7 @@ func (r *request) executeOnContainer(ctx context.Context) {
|
||||||
|
|
||||||
localStatus := r.status
|
localStatus := r.status
|
||||||
|
|
||||||
for {
|
for !r.processCurrentEpoch(ctx, localStatus) && lookupDepth != 0 {
|
||||||
if r.processCurrentEpoch(ctx, localStatus) {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
|
|
||||||
// check the maximum depth has been reached
|
|
||||||
if lookupDepth == 0 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
|
|
||||||
lookupDepth--
|
lookupDepth--
|
||||||
|
|
||||||
// go to the previous epoch
|
// go to the previous epoch
|
||||||
|
|
Loading…
Add table
Reference in a new issue