Remove duplicate version of lookupSuperordinateDomain() function

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=148657943
This commit is contained in:
mcilwain 2017-02-27 09:35:33 -08:00 committed by Ben McIlwain
parent 90114858fa
commit 64bfbea324
4 changed files with 7 additions and 34 deletions

View file

@ -130,7 +130,7 @@ public final class HostUpdateFlow implements TransactionalFlow {
String newHostName = firstNonNull(suppliedNewHostName, oldHostName);
// Note that lookupSuperordinateDomain calls cloneProjectedAtTime on the domain for us.
Optional<DomainResource> newSuperordinateDomain =
Optional.fromNullable(lookupSuperordinateDomain(validateHostName(newHostName), now));
lookupSuperordinateDomain(validateHostName(newHostName), now);
verifyUpdateAllowed(command, existingHost, newSuperordinateDomain.orNull());
if (isHostRename && loadAndGetKey(HostResource.class, newHostName, now) != null) {
throw new HostAlreadyExistsException(newHostName);