Skip to content

Commit

Permalink
Remove redundant order API call in TPPWholesale renew()
Browse files Browse the repository at this point in the history
  • Loading branch information
uphlewis committed Sep 19, 2024
1 parent ea5f4fd commit 94e7d42
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/TPPWholesale/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,6 @@ public function renew(RenewParams $params): DomainResult
$period = intval($params->renew_years);

try {
try {
$order = $this->api()->getDomainOrderInfo($domainName, null);
} catch (Throwable $e) {
$order = null;
}

$this->api()->renew($domainName, $period);
return $this->getInfoDomainResult($domainName, sprintf('Renewal for %s domain was successful!', $domainName));
} catch (Throwable $e) {
Expand Down

0 comments on commit 94e7d42

Please sign in to comment.