From 81cfd0986f96f17e400ff17d910acb2c2b3f8d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jovan=20Kruni=C4=87?= Date: Tue, 25 Aug 2020 14:28:30 +0200 Subject: [PATCH] refactor: remove unused express variable (port) --- config/default-b-tu.ts | 2 +- config/default-fb-fh.ts | 2 +- config/default-ks-ug.ts | 2 +- src/cli.ts | 4 +--- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/config/default-b-tu.ts b/config/default-b-tu.ts index 01a6113a..988fe365 100644 --- a/config/default-b-tu.ts +++ b/config/default-b-tu.ts @@ -2,7 +2,7 @@ // tslint:disable:no-magic-numbers import {SCConfigFile} from '@openstapps/core'; import {RecursivePartial} from '@openstapps/logger/lib/common'; -import * as moment from 'moment'; +import moment from 'moment'; import {inRangeInclusive} from '../src/common'; const ssRange = [4, 9]; diff --git a/config/default-fb-fh.ts b/config/default-fb-fh.ts index e9354a62..496f0c5e 100644 --- a/config/default-fb-fh.ts +++ b/config/default-fb-fh.ts @@ -2,7 +2,7 @@ // tslint:disable:no-magic-numbers import {SCConfigFile} from '@openstapps/core'; import {RecursivePartial} from '@openstapps/logger/lib/common'; -import * as moment from 'moment'; +import moment from 'moment'; import {inRangeInclusive} from '../src/common'; const ssRange = [4, 9]; diff --git a/config/default-ks-ug.ts b/config/default-ks-ug.ts index cbe9290f..42be301b 100644 --- a/config/default-ks-ug.ts +++ b/config/default-ks-ug.ts @@ -2,7 +2,7 @@ // tslint:disable:no-magic-numbers import {SCConfigFile} from '@openstapps/core'; import {RecursivePartial} from '@openstapps/logger/lib/common'; -import * as moment from 'moment'; +import moment from 'moment'; import {inRangeInclusive} from '../src/common'; const ssRange = [4, 9]; diff --git a/src/cli.ts b/src/cli.ts index 1c684d45..629b82c6 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -25,8 +25,6 @@ const app = express(); */ // tslint:disable-next-line: strict-boolean-expressions 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. @@ -99,7 +97,7 @@ function onListening() { configureApp(app) .then(() => { - Logger.ok('Sucessfully configured express server'); + Logger.ok('Successfully configured express server'); // After app setup listen on provided port, on all network interfaces server.listen(port); })