ing
This commit is contained in:
parent
a02f6e011c
commit
ec39167968
|
@ -18,13 +18,13 @@ func ExecuteStarters(instances []interface{}, targetTypes []reflect.Type, revers
|
||||||
}
|
}
|
||||||
|
|
||||||
if reverse {
|
if reverse {
|
||||||
for indexI := ilen - 1; indexI >= 0; indexI-- {
|
for indexI := tlen - 1; indexI >= 0; indexI-- {
|
||||||
if err := executeStarter(instances, targetTypes[indexI]); nil != err {
|
if err := executeStarter(instances, targetTypes[indexI]); nil != err {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for indexI := 0; indexI < ilen; indexI++ {
|
for indexI := 0; indexI < tlen; indexI++ {
|
||||||
if err := executeStarter(instances, targetTypes[indexI]); nil != err {
|
if err := executeStarter(instances, targetTypes[indexI]); nil != err {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -59,13 +59,13 @@ func ExecuteStoppers(instances []interface{}, targetTypes []reflect.Type, revers
|
||||||
}
|
}
|
||||||
|
|
||||||
if reverse {
|
if reverse {
|
||||||
for indexI := ilen - 1; indexI >= 0; indexI-- {
|
for indexI := tlen - 1; indexI >= 0; indexI-- {
|
||||||
if err := executeStarter(instances, targetTypes[indexI]); nil != err {
|
if err := executeStarter(instances, targetTypes[indexI]); nil != err {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for indexI := 0; indexI < ilen; indexI++ {
|
for indexI := 0; indexI < tlen; indexI++ {
|
||||||
if err := executeStarter(instances, targetTypes[indexI]); nil != err {
|
if err := executeStarter(instances, targetTypes[indexI]); nil != err {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user