Simplify for loop
This commit is contained in:
parent
e83469acab
commit
1f7bb65205
1 changed files with 1 additions and 5 deletions
|
@ -72,16 +72,12 @@ func (f *Foundation) calculateNextStep(step int) int {
|
||||||
}
|
}
|
||||||
|
|
||||||
i := f.currentStep
|
i := f.currentStep
|
||||||
for {
|
for i < step {
|
||||||
i++
|
i++
|
||||||
|
|
||||||
if _, ok := f.interceptors[i]; ok {
|
if _, ok := f.interceptors[i]; ok {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
if step == i {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return i
|
return i
|
||||||
|
|
Loading…
Reference in a new issue