Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
refactor: remove redundant type casting
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-agius4 authored and vikerman committed Sep 26, 2019
1 parent 01ee199 commit 5acec5a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion integration/express-engine-ivy/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function app() {

// Express server
function run() {
const port: string | number = process.env.PORT || 4000;
const port = process.env.PORT || 4000;

// Start up the Node server
const server = app();
Expand Down
2 changes: 1 addition & 1 deletion integration/express-engine-ve/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function app() {

// Express server
function run() {
const port: string | number = process.env.PORT || 4000;
const port = process.env.PORT || 4000;

// Start up the Node server
const server = app();
Expand Down
2 changes: 1 addition & 1 deletion integration/hapi-engine-ivy/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { AppServerModule } from './src/main.server';

// The Hapi server is exported so that it can be used by serverless functions.
export async function app() {
const port: string | number = process.env.PORT || 4000;
const port = process.env.PORT || 4000;
const distFolder = join(process.cwd(), 'dist/hapi-engine-ivy/browser');
const server = new Server({
port,
Expand Down
2 changes: 1 addition & 1 deletion integration/hapi-engine-ve/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { AppServerModuleNgFactory } from './src/main.server';

// The Hapi server is exported so that it can be used by serverless functions.
export async function app() {
const port: string | number = process.env.PORT || 4000;
const port = process.env.PORT || 4000;
const distFolder = join(process.cwd(), 'dist/hapi-engine-ve/browser');
const server = new Server({
port,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function app() {

// Express server
function run() {
const port: string | number = process.env.PORT || <%= serverPort %>;
const port = process.env.PORT || <%= serverPort %>;

// Start up the Node server
const server = app();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { AppServerModule } from './src/<%= stripTsExtension(main) %>';

// The Hapi server is exported so that it can be used by serverless functions.
export async function app() {
const port: string | number = process.env.PORT || <%= serverPort %>;
const port = process.env.PORT || <%= serverPort %>;
const distFolder = join(process.cwd(), '<%= browserDistDirectory %>');
const server = new Server({
port,
Expand Down

0 comments on commit 5acec5a

Please sign in to comment.