mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Fix type inference error in RdapDomainSearchAction
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=135482307
This commit is contained in:
parent
fabbf8871c
commit
503a10bbf8
1 changed files with 6 additions and 6 deletions
|
@ -143,10 +143,10 @@ public class RdapDomainSearchAction extends RdapActionBase {
|
|||
if (!partialStringQuery.getHasWildcard()) {
|
||||
DomainResource domainResource =
|
||||
loadByForeignKey(DomainResource.class, partialStringQuery.getInitialString(), now);
|
||||
return makeSearchResults(
|
||||
(domainResource == null) ? ImmutableList.of() : ImmutableList.of(domainResource),
|
||||
false,
|
||||
now);
|
||||
ImmutableList<DomainResource> results = (domainResource == null)
|
||||
? ImmutableList.<DomainResource>of()
|
||||
: ImmutableList.of(domainResource);
|
||||
return makeSearchResults(results, false, now);
|
||||
// Handle queries with a wildcard.
|
||||
} else {
|
||||
// We can't query for undeleted domains as part of the query itself; that would require an
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue