From caeba1197c4b66e10614ffbddce0a2e98b0b5ef3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 24 May 2017 20:50:17 +0900 Subject: Refactoring --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/index.ts') diff --git a/src/index.ts b/src/index.ts index b8d9b35f41..b8ff525ba7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -87,7 +87,7 @@ async function init(): Promise { MachineInfo.show(); new DependencyInfo().showAll(); - let configLogger = new Logger('Config'); + const configLogger = new Logger('Config'); if (!fs.existsSync(configPath)) { throw 'Configuration not found - Please run "npm run config" command.'; } @@ -109,7 +109,7 @@ async function init(): Promise { */ // Try to connect to MongoDB - let mongoDBLogger = new Logger('MongoDB'); + const mongoDBLogger = new Logger('MongoDB'); const db = require('./db/mongodb').default; mongoDBLogger.info('Successfully connected'); db.close(); -- cgit v1.2.3-freya