This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-scxml.git
commit b205e536bd44a6da7adf700719904482f922c2da Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Sep 12 10:41:16 2024 -0400 Merge else if block --- src/main/java/org/apache/commons/scxml2/SCInstance.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/apache/commons/scxml2/SCInstance.java b/src/main/java/org/apache/commons/scxml2/SCInstance.java index 53073200..760bd42c 100644 --- a/src/main/java/org/apache/commons/scxml2/SCInstance.java +++ b/src/main/java/org/apache/commons/scxml2/SCInstance.java @@ -197,13 +197,10 @@ public class SCInstance implements Serializable { } errorReporter.onError(ErrorConstants.EXPRESSION_ERROR, see.getMessage(), datum); } - } - else if (datum.getParsedValue() != null) { - value = evaluator.cloneData(datum.getParsedValue().getValue()); - setValue = true; - } - else { - // initialize data value with null + } else { + if (datum.getParsedValue() != null) { + value = evaluator.cloneData(datum.getParsedValue().getValue()); + } setValue = true; } if (setValue) {