mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-09 19:22:51 +00:00
refactor: remove unused express variable (port)
This commit is contained in:
committed by
Rainer Killinger
parent
9f4350eea7
commit
81cfd0986f
@@ -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];
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user