run 'npm run lint:js:fix'

This commit is contained in:
acalcutt 2023-03-01 08:51:29 -05:00
parent 096fef9b0a
commit 18e20a8808
2 changed files with 6 additions and 3 deletions

View file

@ -592,11 +592,12 @@ function start(opts) {
/** /**
* Stop the server gracefully * Stop the server gracefully
*
* @param {string} signal Name of the received signal * @param {string} signal Name of the received signal
*/ */
function stopGracefully(signal) { function stopGracefully(signal) {
console.log(`Caught signal ${signal}, stopping gracefully`); console.log(`Caught signal ${signal}, stopping gracefully`);
process.exit(); process.exit();
} }
/** /**

View file

@ -8,9 +8,11 @@ import glyphCompose from '@mapbox/glyph-pbf-composite';
/** /**
* Generate new URL object * Generate new URL object
*
* @param req
* @params {object} req - Express request * @params {object} req - Express request
* @returns {URL} object * @returns {URL} object
**/ */
const getUrlObject = (req) => { const getUrlObject = (req) => {
const urlObject = new URL(`${req.protocol}://${req.headers.host}/`); const urlObject = new URL(`${req.protocol}://${req.headers.host}/`);
// support overriding hostname by sending X-Forwarded-Host http header // support overriding hostname by sending X-Forwarded-Host http header