mirror of
https://github.com/google/nomulus
synced 2026-01-03 19:54:18 +00:00
Fix type inference error in RdapDomainSearchAction
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=135482307
This commit is contained in:
@@ -143,10 +143,10 @@ public class RdapDomainSearchAction extends RdapActionBase {
|
|||||||
if (!partialStringQuery.getHasWildcard()) {
|
if (!partialStringQuery.getHasWildcard()) {
|
||||||
DomainResource domainResource =
|
DomainResource domainResource =
|
||||||
loadByForeignKey(DomainResource.class, partialStringQuery.getInitialString(), now);
|
loadByForeignKey(DomainResource.class, partialStringQuery.getInitialString(), now);
|
||||||
return makeSearchResults(
|
ImmutableList<DomainResource> results = (domainResource == null)
|
||||||
(domainResource == null) ? ImmutableList.of() : ImmutableList.of(domainResource),
|
? ImmutableList.<DomainResource>of()
|
||||||
false,
|
: ImmutableList.of(domainResource);
|
||||||
now);
|
return makeSearchResults(results, false, now);
|
||||||
// Handle queries with a wildcard.
|
// Handle queries with a wildcard.
|
||||||
} else {
|
} else {
|
||||||
// We can't query for undeleted domains as part of the query itself; that would require an
|
// We can't query for undeleted domains as part of the query itself; that would require an
|
||||||
|
|||||||
Reference in New Issue
Block a user