From c70c7da0be157a80f73352f590c6b81e27e639f8 Mon Sep 17 00:00:00 2001 From: "syzer3@gmail.com" Date: Mon, 30 Jan 2017 15:46:30 +0100 Subject: [PATCH] Fix errors in message.js --- lib/message.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/message.js b/lib/message.js index a9620b2..759e72b 100644 --- a/lib/message.js +++ b/lib/message.js @@ -70,7 +70,7 @@ LoginMessage = function(buffer) { Message.call(this, buffer); this.type = MESSAGE_TYPE.LOGIN; this.status = this.readByte(); - this.error = (this.status === 0 ? false : true ); + this.error = (this.status !== 0 ); if(this.error === false) { this.serverId = this.readInt(); this.connectionId = this.readLong(); @@ -114,7 +114,6 @@ QueryMessage = function(buffer) { if(this.fieldsPresent & PRESENT.APP_STATUS) { this.appStatusString = this.readString(); } - this.exception this.exceptionLength = this.readInt(); if(this.fieldsPresent & PRESENT.EXCEPTION) { this.exception = this.readException(1); @@ -143,7 +142,6 @@ qm.toString = function() { error : this.error, uid : this.uid, fieldsPresent : this.fieldsPresent, - status : this.status, statusString : this.statusString, appStatus : this.appStatus, appStatusString : this.appStatusString,