From caeba1197c4b66e10614ffbddce0a2e98b0b5ef3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 24 May 2017 20:50:17 +0900 Subject: Refactoring --- src/utils/environmentInfo.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/utils/environmentInfo.ts') diff --git a/src/utils/environmentInfo.ts b/src/utils/environmentInfo.ts index f8508d1d8b..e6084cde0e 100644 --- a/src/utils/environmentInfo.ts +++ b/src/utils/environmentInfo.ts @@ -1,10 +1,11 @@ import Logger from './logger'; export default class { - static show(): void { + public static show(): void { const env = process.env.NODE_ENV; - let logger = new Logger('Env'); + const logger = new Logger('Env'); logger.info(typeof env == 'undefined' ? 'NODE_ENV is not set' : `NODE_ENV: ${env}`); + if (env !== 'production') { logger.warn('The environment is not in production mode'); logger.warn('Do not use for production purpose'); -- cgit v1.2.3-freya