Skip to content

Commit 2f266ff

Browse files
committed
Small refactor
1 parent 6243868 commit 2f266ff

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Commands/LdapUserImporter.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ public function chunkObjectsFromRepository(Closure $callback, $perChunk = 500)
140140
);
141141

142142
$query->chunk($perChunk, function ($objects) use ($callback) {
143-
$this->objects = $objects;
144-
145-
$callback($objects);
143+
$callback($this->objects = $objects);
146144
});
147145
}
148146

0 commit comments

Comments
 (0)