mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-27 17:20:12 +00:00
Remove some redundant checks
$sleep must already be an integer (due to type hints). Change-Id: I468ea23cafd2706bdeb23676d8aab85daa09a599
This commit is contained in:
parent
f8909a36da
commit
539946a92a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue