Skip to content

Commit

Permalink
Bug 575181 expose License Agreements on license import
Browse files Browse the repository at this point in the history
fix 'worth attention" predicate: is must plainly depend on 'is
restrictive', as it encloses non-trivial logic already.

Signed-off-by: eparovyshnaya <[email protected]>
  • Loading branch information
eparovyshnaya committed Aug 23, 2021
1 parent 178630d commit a0bc857
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public final class CertificateWorthAttention implements Predicate<Optional<Exami

@Override
public boolean test(Optional<ExaminationCertificate> certificate) {
if (!certificate.isPresent()) {
if (new CertificateIsRestrictive().test(certificate)) {
return true;
}
if (certificate.get().restrictions().stream().anyMatch(new RestrictionMustPauseExecution())) {
Expand Down

0 comments on commit a0bc857

Please sign in to comment.