Skip to content

Commit

Permalink
remove unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Aug 13, 2019
1 parent bd34d38 commit 74b62bb
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ protected function restoreCollection($value)
return new $collectionClass(
collect($value->id)->map(function ($id) use ($collection) {
return $collection[$id] ?? null;
})->when($collection->count() !== count($value->id), function ($collection) {
return $collection->filter();
})
})->filter()
);
}

Expand Down

0 comments on commit 74b62bb

Please sign in to comment.