Simplify for loop

This commit is contained in:
Miguel de la Cruz 2022-08-10 13:31:00 +02:00
parent e83469acab
commit 1f7bb65205

View file

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