[#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
|
||||
|
||||
for {
|
||||
if r.processCurrentEpoch(ctx, localStatus) {
|
||||
break
|
||||
}
|
||||
|
||||
// check the maximum depth has been reached
|
||||
if lookupDepth == 0 {
|
||||
break
|
||||
}
|
||||
|
||||
for !r.processCurrentEpoch(ctx, localStatus) && lookupDepth != 0 {
|
||||
lookupDepth--
|
||||
|
||||
// go to the previous epoch
|
||||
|
|
Loading…
Add table
Reference in a new issue