Skip to content

Commit

Permalink
improve overDue conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
wwelling committed Mar 4, 2021
1 parent 2112c64 commit 0f244d0
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,9 @@ private LoanItem buildLoanItem(JsonNode loanJson) throws ParseException {
Date loanDate = loanJson.has("loanDate") ? folioDateToDate(loanJson.get("loanDate").asText()) : null;
Date loanDueDate = loanJson.has("dueDate") ? folioDateToDate(loanJson.get("dueDate").asText()) : null;
String overDueString = getNodeValue(loanJson, "overdue");
boolean overDue = false;
if (overDueString != null) {
overDue = Boolean.valueOf(overDueString);
}
boolean overDue = StringUtils.isNotEmpty(overDueString)
? Boolean.valueOf(overDueString)
: false;

String loanId = getNodeValue(loanJson, "id");

Expand Down

0 comments on commit 0f244d0

Please sign in to comment.