Skip to content

Commit

Permalink
Small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Sep 24, 2021
1 parent 6243868 commit 2f266ff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Commands/LdapUserImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ public function chunkObjectsFromRepository(Closure $callback, $perChunk = 500)
);

$query->chunk($perChunk, function ($objects) use ($callback) {
$this->objects = $objects;

$callback($objects);
$callback($this->objects = $objects);
});
}

Expand Down

0 comments on commit 2f266ff

Please sign in to comment.