Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmeldrum committed Dec 1, 2023
1 parent 4e48e59 commit b1f9a73
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,15 @@ public CommandResult buildTfCommandResult(List<String> jsonLogs) {
.filter(this::isErrorLog)
.map(this::simplifyApplyErroredLog)
.toList();
;

JobStatus status = CollectionUtils.isEmpty(errorLogs) ? JobStatus.success : JobStatus.error;
return CommandResult.builder()
.logs(ListUtils.union(successLogs, errorLogs))
.status(status)
.build();

}



private Map<String, Object> parseTfOutput(String json) {
try {
return objectMapper.readValue(json, Map.class);
Expand Down

0 comments on commit b1f9a73

Please sign in to comment.