chore: simplify the Watchlist component

This commit is contained in:
Maël Gangloff
2024-12-29 18:17:58 +01:00
parent 16e3d3b33a
commit f86153049b
3 changed files with 15 additions and 18 deletions

View File

@@ -177,7 +177,7 @@ readonly class RDAPService
$tld = strtolower(idn_to_ascii(substr($domain, $lastDotPosition + 1)));
$tldEntity = $this->tldRepository->findOneBy(['tld' => $tld]);
if (null === $tldEntity) {
throw new NotFoundHttpException("The requested TLD is not yet supported, please try again with another one");
throw new NotFoundHttpException('The requested TLD is not yet supported, please try again with another one');
}
return $tldEntity;