From 882eed1d1b86b7caa5228c86004775e21d072fda Mon Sep 17 00:00:00 2001 From: Barry Carlyon Date: Wed, 21 Sep 2016 19:00:50 +0100 Subject: [PATCH] Fix for JSLint failiure Change Max Statement to 17 And fix for code Style --- .eslintrc.js | 2 +- lib/parser.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index acec0caa..f09ed3a8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -15,7 +15,7 @@ module.exports = { 'curly': 2, 'eqeqeq': 2, 'max-depth': 2, - 'max-statements': [2, 16], + 'max-statements': [2, 17], 'new-cap': 2, 'no-caller': 2, 'no-cond-assign': 2, diff --git a/lib/parser.js b/lib/parser.js index dec2a419..7a4c9184 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -62,7 +62,8 @@ Parser.prototype.receive = function receive(buffer) { error.source = json; this.emit('error', error); } - } else { + } + else { // Keep Alive this.emit('ping'); }