refactor: remove unused express variable (port)

This commit is contained in:
Jovan Krunić
2020-08-25 14:28:30 +02:00
committed by Rainer Killinger
parent 9f4350eea7
commit 81cfd0986f
4 changed files with 4 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
// tslint:disable:no-magic-numbers // tslint:disable:no-magic-numbers
import {SCConfigFile} from '@openstapps/core'; import {SCConfigFile} from '@openstapps/core';
import {RecursivePartial} from '@openstapps/logger/lib/common'; import {RecursivePartial} from '@openstapps/logger/lib/common';
import * as moment from 'moment'; import moment from 'moment';
import {inRangeInclusive} from '../src/common'; import {inRangeInclusive} from '../src/common';
const ssRange = [4, 9]; const ssRange = [4, 9];

View File

@@ -2,7 +2,7 @@
// tslint:disable:no-magic-numbers // tslint:disable:no-magic-numbers
import {SCConfigFile} from '@openstapps/core'; import {SCConfigFile} from '@openstapps/core';
import {RecursivePartial} from '@openstapps/logger/lib/common'; import {RecursivePartial} from '@openstapps/logger/lib/common';
import * as moment from 'moment'; import moment from 'moment';
import {inRangeInclusive} from '../src/common'; import {inRangeInclusive} from '../src/common';
const ssRange = [4, 9]; const ssRange = [4, 9];

View File

@@ -2,7 +2,7 @@
// tslint:disable:no-magic-numbers // tslint:disable:no-magic-numbers
import {SCConfigFile} from '@openstapps/core'; import {SCConfigFile} from '@openstapps/core';
import {RecursivePartial} from '@openstapps/logger/lib/common'; import {RecursivePartial} from '@openstapps/logger/lib/common';
import * as moment from 'moment'; import moment from 'moment';
import {inRangeInclusive} from '../src/common'; import {inRangeInclusive} from '../src/common';
const ssRange = [4, 9]; const ssRange = [4, 9];

View File

@@ -25,8 +25,6 @@ const app = express();
*/ */
// tslint:disable-next-line: strict-boolean-expressions // tslint:disable-next-line: strict-boolean-expressions
const port = normalizePort(process.env.PORT || '3000'); const port = normalizePort(process.env.PORT || '3000');
// TODO: Can we remove that? It doesn't look like it is read at all.
app.set('port', port);
/** /**
* Create HTTP server. * Create HTTP server.
@@ -99,7 +97,7 @@ function onListening() {
configureApp(app) configureApp(app)
.then(() => { .then(() => {
Logger.ok('Sucessfully configured express server'); Logger.ok('Successfully configured express server');
// After app setup listen on provided port, on all network interfaces // After app setup listen on provided port, on all network interfaces
server.listen(port); server.listen(port);
}) })