Skip to content

Commit

Permalink
Simplify comments filters
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.
  • Loading branch information
frankieroberto committed Dec 3, 2024
1 parent 4b1dff9 commit d7c1d7a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions app/filters.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
module.exports = function (env) { /* eslint-disable-line func-names,no-unused-vars */

Check failure on line 1 in app/filters.js

View workflow job for this annotation

GitHub Actions / Code style checks

Block must not be padded by blank lines
/**
* 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 +33,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 d7c1d7a

Please sign in to comment.