diff --git a/server/models/views/river-and-sea-levels.js b/server/models/views/river-and-sea-levels.js index 6a7e75cad..ea1fd18cf 100644 --- a/server/models/views/river-and-sea-levels.js +++ b/server/models/views/river-and-sea-levels.js @@ -230,7 +230,7 @@ class ViewModel { return '' } - typeChecked (types, type) { + typeChecked (_types, type) { return this.types.some(a => type.includes(a)) } diff --git a/server/routes/alerts-and-warnings.js b/server/routes/alerts-and-warnings.js index e6e73cd38..5ac8d5047 100644 --- a/server/routes/alerts-and-warnings.js +++ b/server/routes/alerts-and-warnings.js @@ -83,7 +83,7 @@ module.exports = [{ payload: joi.object({ location: joi.string().allow('').trim().max(200).required() }), - failAction: (request, h, err) => { + failAction: (request, h, _err) => { return h.view('alerts-and-warnings').takeover() } } diff --git a/server/routes/guidance.js b/server/routes/guidance.js index 056ff1c44..3db357d32 100644 --- a/server/routes/guidance.js +++ b/server/routes/guidance.js @@ -1,7 +1,7 @@ module.exports = { method: 'GET', path: '/what-to-do-in-a-flood', - handler: async (request, h) => { + handler: async (_request, h) => { return h.view('what-to-do-in-a-flood') } } diff --git a/server/routes/river-and-sea-levels.js b/server/routes/river-and-sea-levels.js index ecc9bd85b..31d00b4b9 100644 --- a/server/routes/river-and-sea-levels.js +++ b/server/routes/river-and-sea-levels.js @@ -78,7 +78,7 @@ module.exports = [{ lyr: joi.string(), v: joi.string() }), - failAction: (request, h, err) => { + failAction: (request, h, _err) => { return h.view('404').code(404).takeover() } } diff --git a/server/routes/start-page.js b/server/routes/start-page.js index 3f355ff5b..6d251a6f2 100644 --- a/server/routes/start-page.js +++ b/server/routes/start-page.js @@ -3,6 +3,6 @@ module.exports = { path: '/start-page', options: { description: 'start-page - Permanent (HTTP 301) redirect to gov.uk/check-flooding', - handler: async (request, h) => h.redirect('https://www.gov.uk/check-flooding').code(301) + handler: async (_request, h) => h.redirect('https://www.gov.uk/check-flooding').code(301) } } diff --git a/server/routes/status.js b/server/routes/status.js index 373f2a7e5..e615f77af 100644 --- a/server/routes/status.js +++ b/server/routes/status.js @@ -6,7 +6,7 @@ const FloodsModel = require('../models/floods') module.exports = { method: 'GET', path: '/status', - handler: async (request, h) => { + handler: async (_request, h) => { // test location services let place, locationStart, locationEnd try {