fail-fast for dependent check (#15197)

Co-authored-by: Leoric Yue <leoric.yue@zoom.us>
Co-authored-by: caishunfeng <caishunfeng2021@gmail.com>
This commit is contained in:
Dyqer 2023-12-07 11:06:10 +08:00 committed by GitHub
parent 14272dafab
commit 0bb48f3429
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -42,8 +42,7 @@ public class DependentUtils {
case AND:
if (dependResultList.contains(DependResult.FAILED)) {
dependResult = DependResult.FAILED;
}
if (dependResultList.contains(DependResult.WAITING)) {
} else if (dependResultList.contains(DependResult.WAITING)) {
dependResult = DependResult.WAITING;
}
break;