Skip to content

Commit

Permalink
Merge branch 'staging' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
zokto committed Jun 16, 2021
2 parents 26d5e9c + d947f6d commit a9a4d03
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ public class CheckResultSchema {
public CheckResultSchema(CheckResult result, JsonNode node) {
this.checkName = result.getCheckName();
this.result = result.getResult();
this.severity = CheckSeverity.valueOf(node.get("severity").asText());
this.description = node.get("description").asText();
this.message = node.get("message").asText();
this.fix = node.get("fix").asText();
this.tag = node.get("tag").asText();
this.priority = node.get("priority").asInt();
if (node != null) {
this.severity = CheckSeverity.valueOf(node.get("severity").asText());
this.description = node.get("description").asText();
this.message = node.get("message").asText();
this.fix = node.get("fix").asText();
this.tag = node.get("tag").asText();
this.priority = node.get("priority").asInt();
}
}

public String getCheckName() {
Expand Down

0 comments on commit a9a4d03

Please sign in to comment.