1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 08:27:42 +02:00

chore: Remove unused vars in catch (#3839)

This commit is contained in:
Ngô Quốc Đạt
2023-06-21 22:38:24 +07:00
committed by GitHub
parent 0cf2001478
commit b003736d75
6 changed files with 7 additions and 7 deletions

View File

@@ -64,7 +64,7 @@ class TagFilterGambit extends AbstractRegexGambit implements FilterInterface
// @TODO: grab all IDs first instead of multiple queries.
try {
$id = $this->slugger->forResource(Tag::class)->fromSlug($slug, $actor)->id;
} catch (ModelNotFoundException $e) {
} catch (ModelNotFoundException) {
$id = null;
}