mirror of
https://github.com/google/nomulus
synced 2026-01-06 21:47:31 +00:00
Tidy up ExpandrecurringBillingEventsAction
Per nickfelt's suggestion on [] ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=127193451
This commit is contained in:
@@ -241,11 +241,8 @@ public class ExpandRecurringBillingEventsAction implements Runnable {
|
||||
.filter(new Predicate<BillingEvent.OneTime>() {
|
||||
@Override
|
||||
public boolean apply(OneTime billingEvent) {
|
||||
Key<? extends BillingEvent> cancellationMatchingBillingEvent =
|
||||
billingEvent.getCancellationMatchingBillingEvent();
|
||||
return cancellationMatchingBillingEvent != null
|
||||
&& billingEvent.getCancellationMatchingBillingEvent().equals(
|
||||
Key.create(recurringEvent));
|
||||
return Key.create(recurringEvent)
|
||||
.equals(billingEvent.getCancellationMatchingBillingEvent());
|
||||
}})
|
||||
.transform(new Function<OneTime, DateTime>() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user