Skip to content

Commit

Permalink
Remove unnecessary async (#372)
Browse files Browse the repository at this point in the history
While working on updating all repos `/status` endpoints to only return a static response I noticed that the controller for this endpoint is `async` when it doesn't need to be. I've therefore removed the `async` from the function that returns the static response.
  • Loading branch information
Jozzey authored Aug 22, 2023
1 parent b11a0b7 commit 5c63281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/root.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @module RootController
*/

async function index (_request, _h) {
function index (_request, _h) {
return { status: 'alive' }
}
module.exports = {
Expand Down

0 comments on commit 5c63281

Please sign in to comment.