From 947b4651186b5df86b1bac126f6d97225b3f65c4 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Tue, 7 Aug 2012 22:34:46 -0700 Subject: [PATCH] some jsstyle'in --- lib/bunyan.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/bunyan.js b/lib/bunyan.js index 085d0b0..629afcb 100644 --- a/lib/bunyan.js +++ b/lib/bunyan.js @@ -942,7 +942,8 @@ Logger.stdSerializers = {}; // Serialize an HTTP request. Logger.stdSerializers.req = function req(req) { - if (!req || !req.connection) return req; + if (!req || !req.connection) + return req; return { method: req.method, url: req.url, @@ -959,7 +960,8 @@ Logger.stdSerializers.req = function req(req) { // Serialize an HTTP response. Logger.stdSerializers.res = function res(res) { - if (!res || !res.statusCode) return res; + if (!res || !res.statusCode) + return res; return { statusCode: res.statusCode, header: res._header @@ -969,7 +971,8 @@ Logger.stdSerializers.res = function res(res) { // Serialize an Error object // (Core error properties are enumerable in node 0.4, not in 0.6). var errSerializer = Logger.stdSerializers.err = function err(err) { - if (!err || !err.stack) return err; + if (!err || !err.stack) + return err; var obj = { message: err.message, name: err.name,