Skip to content

Commit

Permalink
Simplify comments filters (#434)
Browse files Browse the repository at this point in the history
Noticed that the comments in `app/filters.js` mention "gov.uk core
filters" - presumably leftover from forking from the govuk prototype
kit.

Have taken the opportunity to simplify the comments blocks.

The middle comments block could be updated to point to some guidance on
https://prototype-kit.service-manual.nhs.uk when it’s ready.

Spotted when reviewing
nhsuk/nhsuk.service-manual.prototype-kit.docs#158
  • Loading branch information
frankieroberto authored Dec 5, 2024
1 parent 4b1dff9 commit 0a37eb3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions app/filters.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
module.exports = function (env) { /* eslint-disable-line func-names,no-unused-vars */
/**
* Instantiate object used to store the methods registered as a
* 'filter' (of the same name) within nunjucks. You can override
* gov.uk core filters by creating filter methods of the same name.
* @type {Object}
*/
const filters = {};

/* ------------------------------------------------------------------
Expand Down Expand Up @@ -38,8 +32,6 @@ module.exports = function (env) { /* eslint-disable-line func-names,no-unused-va
------------------------------------------------------------------ */

/* ------------------------------------------------------------------
keep the following line to return your filters to the app
------------------------------------------------------------------ */
/* keep the following line to return your filters to the app */
return filters;
};

0 comments on commit 0a37eb3

Please sign in to comment.