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
|
||||
for {
|
||||
for i < step {
|
||||
i++
|
||||
|
||||
if _, ok := f.interceptors[i]; ok {
|
||||
break
|
||||
}
|
||||
|
||||
if step == i {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
return i
|
||||
|
|
Loading…
Reference in a new issue