Sho SHIMIZU

Refactor: Simplify if-statement

Change-Id: I869b6a6e9f85422262dd7dbd3884534dcc7affb0
......@@ -191,11 +191,7 @@ class TransactionalContinuousResourceStore {
ImmutableList<ResourceAllocation> finalAllocations = Stream.concat(nonMatched.stream(),
matched.stream()).collect(GuavaCollectors.toImmutableList());
if (!consumers.replace(resource.id(), oldAllocation,
new ContinuousResourceAllocation(oldAllocation.original(), finalAllocations))) {
return false;
}
return true;
return consumers.replace(resource.id(), oldAllocation,
new ContinuousResourceAllocation(oldAllocation.original(), finalAllocations));
}
}
......