Remove unneeded processing

This commit is contained in:
Lukas Bestle
2022-08-20 18:09:56 +02:00
parent b800bcb5be
commit 27acc17eac
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,6 @@
*/
return function ($page) {
$tag = urldecode(param('tag') ?? '');
/**
* We use the collection helper to fetch the notes collection defined in `/site/collections/notes.php`
*
@@ -20,6 +19,7 @@ return function ($page) {
*/
$notes = collection('notes');
$tag = param('tag');
if (empty($tag) === false) {
$notes = $notes->filterBy('tags', $tag, ',');
}