Skip to content

Commit f459177

Browse files
refactor(rector): drop unused catch variable in FileSearchProvider
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent f79cb4e commit f459177

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Search/FileSearchProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function search(IUser $user, ISearchQuery $query): SearchResult {
6464

6565
try {
6666
$files = $this->fileMapper->getFilesToSearchProvider($user, $term, $limit, (int)$offset);
67-
} catch (\Exception $e) {
67+
} catch (\Exception) {
6868
return SearchResult::complete($this->l10n->t('LibreSign documents'), []);
6969
}
7070

@@ -105,7 +105,7 @@ private function formatResult(File $file, IUser $user): SearchResultEntry {
105105
$path = $userFolder->getRelativePath($node->getPath());
106106
$subline = $this->formatSubline($path);
107107
}
108-
} catch (\Exception $e) {
108+
} catch (\Exception) {
109109
}
110110

111111
if ($file->getUserId() === $user->getUID()) {

0 commit comments

Comments
 (0)