dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Safe replacement of a lot of `!count()` with `=== []`
[lhc/web/wiklou.git]
/
includes
/
jobqueue
/
JobQueue.php
diff --git
a/includes/jobqueue/JobQueue.php
b/includes/jobqueue/JobQueue.php
index
3689ba4
..
4f4728d
100644
(file)
--- a/
includes/jobqueue/JobQueue.php
+++ b/
includes/jobqueue/JobQueue.php
@@
-323,7
+323,7
@@
abstract class JobQueue {
final public function batchPush( array $jobs, $flags = 0 ) {
$this->assertNotReadOnly();
- if (
!count( $jobs )
) {
+ if (
$jobs === []
) {
return; // nothing to do
}