mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 00:17:20 +02:00
Remove getOnlyElement()
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=124846747
This commit is contained in:
parent
2a83d122ef
commit
c70d167a99
1 changed files with 2 additions and 1 deletions
|
@ -205,7 +205,8 @@ public abstract class DomainBase extends EppResource {
|
||||||
return FluentIterable
|
return FluentIterable
|
||||||
.from(nullToEmpty(allContacts))
|
.from(nullToEmpty(allContacts))
|
||||||
.filter(IS_REGISTRANT)
|
.filter(IS_REGISTRANT)
|
||||||
.getOnlyElement()
|
.first()
|
||||||
|
.get()
|
||||||
.getContactRef();
|
.getContactRef();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue