Skip to content

Commit 74b62bb

Browse files
committed
remove unneeded code
1 parent bd34d38 commit 74b62bb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Illuminate/Queue/SerializesAndRestoresModelIdentifiers.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ protected function restoreCollection($value)
8585
return new $collectionClass(
8686
collect($value->id)->map(function ($id) use ($collection) {
8787
return $collection[$id] ?? null;
88-
})->when($collection->count() !== count($value->id), function ($collection) {
89-
return $collection->filter();
90-
})
88+
})->filter()
9189
);
9290
}
9391

0 commit comments

Comments
 (0)