Skip to content

Commit a546910

Browse files
committed
fix: 修复异常语法#AI Commit#
1 parent 4fe1ef6 commit a546910

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • dss-orchestrator/orchestrators/dss-workflow/dss-flow-execution-server/src/main/scala/com/webank/wedatasphere/dss/flow/execution/entrance/utils

dss-orchestrator/orchestrators/dss-workflow/dss-flow-execution-server/src/main/scala/com/webank/wedatasphere/dss/flow/execution/entrance/utils/BranchExpressionUtils.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ object BranchExpressionUtils extends Logging {
103103
if condition.nonEmpty && !isUnsupportedDefaultKeyword(condition) && (targetName.isDefined || onFailureTarget.isDefined) =>
104104
Some(BranchRule(condition, targetName, onFailureTarget))
105105
case _ => None
106-
}.getOrElse(false)
106+
}
107107
}
108108
}
109109

@@ -120,7 +120,7 @@ object BranchExpressionUtils extends Logging {
120120
case None =>
121121
warn(s"Invalid branch rule syntax: $line")
122122
None
123-
}.getOrElse(false)
123+
}
124124
}
125125
}
126126

@@ -150,7 +150,7 @@ object BranchExpressionUtils extends Logging {
150150
false
151151
} else {
152152
if (normalized.startsWith("${") && normalized.endsWith("}")) {
153-
warn(s"Invalid branch condition syntax, wrapper ${} is not allowed: $condition")
153+
warn(s"Invalid branch condition syntax, wrapper `$${...}` is not allowed: $condition")
154154
return false
155155
}
156156
val expr = normalized
@@ -199,7 +199,7 @@ object BranchExpressionUtils extends Logging {
199199
context.get(normalized)
200200
.orElse(context.get(unquoted))
201201
.orElse(if (isLiteralToken(unquoted)) Some(unquoted) else None)
202-
}.getOrElse(false)
202+
}
203203
}
204204
}
205205

@@ -235,7 +235,7 @@ object BranchExpressionUtils extends Logging {
235235
case ">" | "<" | ">=" | "<=" =>
236236
warn(s"Branch numeric comparison requires numeric operands: left=$left, operator=$operator, right=$right")
237237
false
238-
}.getOrElse(false)
238+
}
239239
}
240240
}
241241

0 commit comments

Comments
 (0)