Skip to content

Commit

Permalink
FSR-530: Fix sonarclud issues during version update for TA update. (#283
Browse files Browse the repository at this point in the history
)

Co-authored-by: John Shields <[email protected]>
  • Loading branch information
JFSCH and John Shields authored Mar 1, 2022
1 parent d65fb32 commit 7641f5a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion server/models/views/river-and-sea-levels.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ class ViewModel {
return ''
}

typeChecked (types, type) {
typeChecked (_types, type) {
return this.types.some(a => type.includes(a))
}

Expand Down
2 changes: 1 addition & 1 deletion server/routes/alerts-and-warnings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down
2 changes: 1 addition & 1 deletion server/routes/guidance.js
Original file line number Diff line number Diff line change
@@ -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')
}
}
2 changes: 1 addition & 1 deletion server/routes/river-and-sea-levels.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down
2 changes: 1 addition & 1 deletion server/routes/start-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
2 changes: 1 addition & 1 deletion server/routes/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7641f5a

Please sign in to comment.