Use compound return statements for greater readability

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=173451653
This commit is contained in:
mcilwain 2017-10-25 14:39:36 -07:00 committed by jianglai
parent eed2e0c45f
commit d22986a0a3
3 changed files with 4 additions and 16 deletions

View file

@ -130,14 +130,8 @@ public class CloudDnsWriterTest {
stubZone
.stream()
.filter(
resourceRecordSet -> {
if (resourceRecordSet == null) {
return false;
}
return resourceRecordSet
.getName()
.equals(recordNameCaptor.getValue());
})
rs ->
rs != null && rs.getName().equals(recordNameCaptor.getValue()))
.collect(toImmutableList()));
}
});