Skip to content

Commit 709b000

Browse files
committed
Minor code cleanup
Removed console.log which wasn't needed and updated variable names so code checkers are happier.
1 parent c831dcb commit 709b000

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

helpers/mu/server.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ app.use(function(req, res, next) {
3131
next();
3232
});
3333

34-
const errorHandler = function(err, req, res, next) {
34+
const errorHandler = function(err, _req, res, _next) {
3535
res.status(err.status || 400);
3636
res.json({
3737
errors: [ {title: err.message} ]
@@ -53,7 +53,6 @@ function beforeExit(callback) {
5353
let exitHandler = async function(server) {
5454
console.debug("Shutting down server");
5555
if (beforeExitCallbacks.length) {
56-
console.debug("Executing before exit callbacks");
5756
for (let callback of beforeExitCallbacks) {
5857
await callback(server);
5958
}

0 commit comments

Comments
 (0)