From bf7e6c75e69d04bccb51729c57489d95cac24362 Mon Sep 17 00:00:00 2001 From: "Brian M. Carlson" Date: Thu, 19 Dec 2019 07:53:21 -0600 Subject: [PATCH] fix lint --- packages/pg/lib/connection.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/pg/lib/connection.js b/packages/pg/lib/connection.js index c6035e50..364edbc4 100644 --- a/packages/pg/lib/connection.js +++ b/packages/pg/lib/connection.js @@ -381,8 +381,8 @@ var Message = function (name, length) { Connection.prototype.parseMessage = function (buffer) { this.offset = 0 - const length = buffer.length + 4; - const code = this._reader.header; + const length = buffer.length + 4 + const code = this._reader.header switch (code) { case 0x52: // R return this.parseR(buffer, length) @@ -447,7 +447,6 @@ Connection.prototype.parseMessage = function (buffer) { case 0x64: // d return this.parsed(buffer, length) } - console.log('could not parse', packet) } Connection.prototype.parseR = function (buffer, length) {