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'); }