Remove some redundant checks

$sleep must already be an integer (due to type hints).

Change-Id: I468ea23cafd2706bdeb23676d8aab85daa09a599
This commit is contained in:
Bartosz Dziewoński 2024-08-12 22:58:49 +02:00
parent f8909a36da
commit 539946a92a

View file

@ -387,7 +387,7 @@ class Database {
public function migrateNamespace(
int $pageBatchSize, int $linterBatchSize, int $sleep
): int {
if ( gettype( $sleep ) !== 'integer' || $sleep < 0 ) {
if ( $sleep < 0 ) {
$sleep = 0;
}
@ -486,7 +486,7 @@ class Database {
public function migrateTemplateAndTagInfo(
int $batchSize, int $sleep
): int {
if ( gettype( $sleep ) !== 'integer' || $sleep < 0 ) {
if ( $sleep < 0 ) {
$sleep = 0;
}