Enable prefer-const lint rule (#3202)
This commit is contained in:
committed by
Florent Vilmart
parent
a6c988176e
commit
ca286b7108
@@ -35,7 +35,7 @@ function startServer(options, callback) {
|
||||
|
||||
app.use(options.mountPath, api);
|
||||
|
||||
let server = app.listen(options.port, options.host, callback);
|
||||
const server = app.listen(options.port, options.host, callback);
|
||||
server.on('connection', initializeConnections);
|
||||
|
||||
if (options.startLiveQueryServer || options.liveQueryServerOptions) {
|
||||
@@ -69,7 +69,7 @@ function startServer(options, callback) {
|
||||
}
|
||||
}
|
||||
|
||||
let handleShutdown = function() {
|
||||
const handleShutdown = function() {
|
||||
console.log('Termination signal received. Shutting down.');
|
||||
destroyAliveConnections();
|
||||
server.close(function () {
|
||||
|
||||
Reference in New Issue
Block a user