Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
update the constraints for the wait task
Browse files Browse the repository at this point in the history
  • Loading branch information
v1r3n committed Apr 23, 2023
1 parent 31f9a7e commit 7f1f1e0
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,9 @@ private boolean isWaitTaskValid(
}

try {
if (StringUtils.isNotBlank(duration)
&& !(duration.startsWith("${") && duration.endsWith("}"))) {
if (StringUtils.isNotBlank(duration) && !(duration.startsWith("${"))) {
DateTimeUtils.parseDuration(duration);
} else if (StringUtils.isNotBlank(until)
&& !(until.startsWith("${") && until.endsWith("}"))) {
} else if (StringUtils.isNotBlank(until) && !(until.startsWith("${"))) {
DateTimeUtils.parseDate(until);
}
} catch (DateTimeParseException e) {
Expand Down

0 comments on commit 7f1f1e0

Please sign in to comment.