[#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:
Alexander Chuprov 2025-04-07 17:28:27 +03:00
parent c274bbeb7c
commit 2394ae6ce0
Signed by: achuprov
GPG key ID: 2D916FFD803B0EDD

View file

@ -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