Skip to content

Commit

Permalink
fixup! Fix search results filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlSchwan committed Nov 22, 2021
1 parent 7883f31 commit 3539efa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/private/Files/Cache/Wrapper/CacheWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public function getStatus($file) {
*/
public function search($pattern) {
$results = $this->getCache()->search($pattern);
return array_filter(array_map([$this, 'formatCacheEntry'], $results), function($entry) {
return array_filter(array_map([$this, 'formatCacheEntry'], $results), function ($entry) {
return $entry !== false;
});
}
Expand All @@ -237,14 +237,14 @@ public function search($pattern) {
*/
public function searchByMime($mimetype) {
$results = $this->getCache()->searchByMime($mimetype);
return array_filter(array_map([$this, 'formatCacheEntry'], $results), function($entry) {
return array_filter(array_map([$this, 'formatCacheEntry'], $results), function ($entry) {
return $entry !== false;
});
}

public function searchQuery(ISearchQuery $query) {
$results = $this->getCache()->searchQuery($query);
return array_filter(array_map([$this, 'formatCacheEntry'], $results), function($entry) {
return array_filter(array_map([$this, 'formatCacheEntry'], $results), function ($entry) {
return $entry !== false;
});
}
Expand Down

0 comments on commit 3539efa

Please sign in to comment.