From a94072fe1b81c030d216234ca2bc86f24c67b3ea Mon Sep 17 00:00:00 2001 From: jysperm Date: Tue, 1 Aug 2017 14:22:41 +0800 Subject: [PATCH] :art: Minor style update --- app.js | 1 + server.js | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index e28a642..b691612 100644 --- a/app.js +++ b/app.js @@ -1,4 +1,5 @@ 'use strict'; + var express = require('express'); var timeout = require('connect-timeout'); var path = require('path'); diff --git a/server.js b/server.js index 6434963..2cc7a39 100644 --- a/server.js +++ b/server.js @@ -1,4 +1,5 @@ 'use strict'; + var AV = require('leanengine'); AV.init({ @@ -21,9 +22,9 @@ app.listen(PORT, function (err) { // 注册全局未捕获异常处理器 process.on('uncaughtException', function(err) { - console.error("Caught exception:", err.stack); + console.error('Caught exception:', err.stack); }); process.on('unhandledRejection', function(reason, p) { - console.error("Unhandled Rejection at: Promise ", p, " reason: ", reason.stack); + console.error('Unhandled Rejection at: Promise ', p, ' reason: ', reason.stack); }); });