From 9524fb1d5554c58a57487eb1515c5fefdbca5e3e Mon Sep 17 00:00:00 2001 From: Georgios Kalpakas Date: Wed, 6 Apr 2016 20:36:25 +0300 Subject: [PATCH] refactor(seed.config): remove redundant call to `path.normalize()` `path.join()` normalizes the resulting path anyway. There is no need to call `path.normalize()` explicitly. --- tools/config/seed.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/config/seed.config.ts b/tools/config/seed.config.ts index 2021957..c15c095 100644 --- a/tools/config/seed.config.ts +++ b/tools/config/seed.config.ts @@ -1,5 +1,5 @@ import {argv} from 'yargs'; -import {normalize, join} from 'path'; +import {join} from 'path'; import {InjectableDependency, Environments} from './seed.config.interfaces'; export const ENVIRONMENTS: Environments = { @@ -10,7 +10,7 @@ export const ENVIRONMENTS: Environments = { export class SeedConfig { PORT = argv['port'] || 5555; - PROJECT_ROOT = normalize(join(__dirname, '..')); + PROJECT_ROOT = join(__dirname, '..'); ENV = getEnvironment(); DEBUG = argv['debug'] || false; DOCS_PORT = argv['docs-port'] || 4003;