chore: remove a condition

This commit is contained in:
Maël Gangloff 2024-08-27 19:09:27 +02:00
parent 0b8d0dcf42
commit 46ac93df89
No known key found for this signature in database
GPG Key ID: 11FDC81C24A7F629

View File

@ -101,10 +101,6 @@ readonly class RDAPService
*/ */
public static function isToBeWatchClosely(Domain $domain, \DateTimeImmutable $updatedAt): bool public static function isToBeWatchClosely(Domain $domain, \DateTimeImmutable $updatedAt): bool
{ {
if ($updatedAt->diff(new \DateTimeImmutable('now'))->h < 23) {
return false;
}
$status = $domain->getStatus(); $status = $domain->getStatus();
if (!empty($status) && count(array_intersect($status, self::IMPORTANT_STATUS))) { if (!empty($status) && count(array_intersect($status, self::IMPORTANT_STATUS))) {
return true; return true;