[Pkg-javascript-commits] [sockjs-client] 334/350: Fix linting errors

tonnerre at ancient-solutions.com tonnerre at ancient-solutions.com
Fri Aug 5 01:04:36 UTC 2016


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch upstream
in repository sockjs-client.

commit a8e3384a5024475efd80fe1115d0e06f4687eec2
Author: Bryce Kahle <bkahle at gmail.com>
Date:   Tue Jan 5 13:45:12 2016 -0800

    Fix linting errors
---
 lib/utils/log.js | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/lib/utils/log.js b/lib/utils/log.js
index e31276c..b50fb84 100644
--- a/lib/utils/log.js
+++ b/lib/utils/log.js
@@ -3,15 +3,16 @@
 var logObject = {};
 ['log', 'debug', 'warn'].forEach(function (level) {
   var levelExists;
-  
+
   try {
-      levelExists = global.console && global.console[level] && global.console[level].apply;
-  } catch(e){}
-  
+    levelExists = global.console && global.console[level] && global.console[level].apply;
+  } catch(e) {
+    // do nothing
+  }
+
   logObject[level] = levelExists ? function () {
-  return global.console[level].apply(global.console, arguments);
+    return global.console[level].apply(global.console, arguments);
   } : (level === 'log' ? function () {} : logObject.log);
-
 });
 
 module.exports = logObject;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git



More information about the Pkg-javascript-commits mailing list