summaryrefslogtreecommitdiff
path: root/src/index.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-05-24 20:50:17 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-05-24 20:50:17 +0900
commitcaeba1197c4b66e10614ffbddce0a2e98b0b5ef3 (patch)
tree929fbbcc92b9e24baa203fdb2e025f9e3e7e94f0 /src/index.ts
parentUse tabs in json (diff)
downloadsharkey-caeba1197c4b66e10614ffbddce0a2e98b0b5ef3.tar.gz
sharkey-caeba1197c4b66e10614ffbddce0a2e98b0b5ef3.tar.bz2
sharkey-caeba1197c4b66e10614ffbddce0a2e98b0b5ef3.zip
Refactoring
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts4
1 files changed, 2 insertions, 2 deletions
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<Config> {
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<Config> {
*/
// 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();