Merge "Avoid use of IDatabase::delete() return values"

This commit is contained in:
jenkins-bot 2018-10-28 21:42:10 +00:00 committed by Gerrit Code Review
commit 155d582026

View file

@ -399,20 +399,19 @@ class EchoNotificationMapper extends EchoAbstractMapper {
if ( !$idsToDelete ) {
return true;
}
$success = true;
foreach ( array_chunk( $idsToDelete, $wgUpdateRowsPerQuery ) as $batch ) {
$success = $dbw->delete(
$dbw->delete(
'echo_notification',
[
'notification_user' => $userId,
'notification_event' => $batch,
],
__METHOD__
) && $success;
);
$lbFactory->commitAndWaitForReplication(
__METHOD__, $ticket, [ 'domain' => $domainId ] );
}
return $success;
return true;
}
/**