优化代码

This commit is contained in:
everywhere.z
2024-01-31 17:16:28 +08:00
parent d59e87a056
commit a5ad3801dc

View File

@@ -15,7 +15,7 @@ import com.yomahub.liteflow.flow.element.condition.RetryCondition;
public class RetryOperator extends BaseOperator<Condition> {
@Override
public Condition build(Object[] objects) throws Exception {
OperatorHelper.checkObjectSizeGtTwo(objects);
OperatorHelper.checkObjectSizeGteTwo(objects);
Executable executable = OperatorHelper.convert(objects[0], Executable.class);
Integer retryTimes = OperatorHelper.convert(objects[1], Integer.class);
RetryCondition retryCondition = new RetryCondition();