Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CIRC-2036 fix code smell
Browse files Browse the repository at this point in the history
roman-barannyk committed Mar 7, 2024
1 parent 2d29831 commit 050ea69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -98,7 +98,7 @@ public static JsonObject createCheckInContext(CheckInContext context) {
JsonObject staffSlipContext = createStaffSlipContext(item, firstRequest);
JsonObject itemContext = staffSlipContext.getJsonObject(ITEM);

if (item != null && itemContext != null) {
if (ObjectUtils.allNotNull(item, itemContext)) {
write(itemContext, "lastCheckedInDateTime", ClockUtil.getZonedDateTime());
if (item.getInTransitDestinationServicePoint() != null) {
itemContext.put("toServicePoint", item.getInTransitDestinationServicePoint().getName());

0 comments on commit 050ea69

Please sign in to comment.