LoginNotify: Simplify returns in getMinExpiredId()

Follows-Up: Iea716e660353f16c47f873fe42edc2aeec1b4346
Change-Id: Ie351a210eea4eaf4101930fb18e6e149d4294ab4
This commit is contained in:
Reedy 2024-01-24 22:11:52 +00:00
parent 7a424d1fdb
commit d96e30ec80

View file

@ -808,13 +808,12 @@ class LoginNotify implements LoggerAwareInterface {
->limit( 1 )
->caller( __METHOD__ )
->fetchRow();
if ( !$minRow ) {
return null;
} elseif ( $minRow->lsn_time_bucket < $this->getMinBucket() ) {
if ( $minRow && ( $minRow->lsn_time_bucket < $this->getMinBucket() ) ) {
return (int)$minRow->lsn_id;
} else {
return null;
}
return null;
}
/**