Skip to content

Commit

Permalink
Simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Aug 13, 2024
1 parent 1b469da commit 8c4e06c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,7 @@ class JpaLogbookReportRepository(
}.filter {
it.logbookMessageAndValue.value.isInVerificationScope == true &&
it.logbookMessageAndValue.value.isVerified == false &&
(
it.logbookMessageAndValue.value.isInvalidated == null ||
it.logbookMessageAndValue.value.isInvalidated == false
)
it.logbookMessageAndValue.value.isInvalidated != true
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class JpaManualPriorNotificationRepository(
).filter {
it.value.isInVerificationScope == true &&
it.value.isVerified == false &&
(it.value.isInvalidated == null || it.value.isInvalidated == false)
it.value.isInvalidated != true
}
.map {
it.toPriorNotification()
Expand Down

0 comments on commit 8c4e06c

Please sign in to comment.