Skip to content

Commit

Permalink
Remove version check
Browse files Browse the repository at this point in the history
  • Loading branch information
lochmueller committed Jan 16, 2025
1 parent 0445b72 commit 4b0702b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Classes/Service/IpLocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ public function getCountryCode(string $ip): ?string

protected function getClient(): \Psr\Http\Client\ClientInterface
{
if (GeneralUtility::makeInstance(Typo3Version::class)->getMajorVersion() >= 12) {
return GeneralUtility::makeInstance(GuzzleClientFactory::class)->getClient();
}
return (new GuzzleClientFactory())->getClient();
return GeneralUtility::makeInstance(GuzzleClientFactory::class)->getClient();
}
}

0 comments on commit 4b0702b

Please sign in to comment.