Skip to content

Commit df40156

Browse files
committed
change code
1 parent 8228ed6 commit df40156

File tree

1 file changed

+1
-3
lines changed
  • platform-api/src/main/java/com/flow/platform/api/util

1 file changed

+1
-3
lines changed

platform-api/src/main/java/com/flow/platform/api/util/NodeUtil.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ public static Node buildFromYml(String yml, String root) {
7171
Flow[] flows;
7272
try {
7373
flows = YmlParser.fromYml(yml, Flow[].class);
74-
} catch (YmlParseException e) {
75-
throw new YmlException(e.getMessage());
76-
} catch (YmlFormatException e) {
74+
} catch (YmlParseException | YmlFormatException e) {
7775
throw new YmlException(e.getMessage());
7876
}
7977

0 commit comments

Comments
 (0)