Skip to content

Commit ca61aea

Browse files
committed
Refactor execution result handling in Execution.java
1 parent d532817 commit ca61aea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/checkmarx/ast/wrapper/Execution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static <T> T executeCommand(List<String> arguments,
6161
output.append(line).append(LINE_SEPARATOR);
6262
T parsedLine = lineParser.apply(line);
6363
if (parsedLine != null) {
64-
executionResult = customValidator.apply(arguments, parsedLine) ? parsedLine : null;
64+
executionResult = customValidator.apply(arguments, parsedLine) ? parsedLine : executionResult;
6565
}
6666
}
6767
process.waitFor();

0 commit comments

Comments
 (0)