mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Fix js-hint error
This commit is contained in:
parent
c98125b065
commit
beeae35291
@ -89,12 +89,13 @@ Connection.prototype.connect = function(port, host) {
|
||||
Connection.prototype.attachListeners = function(stream) {
|
||||
stream.on('data', function(buff) {
|
||||
this.setBuffer(buff);
|
||||
var msg;
|
||||
while(msg = this.parseMessage()) {
|
||||
var msg = this.parseMessage();
|
||||
while(msg) {
|
||||
if(this._emitMessage) {
|
||||
this.emit('message', msg);
|
||||
}
|
||||
this.emit(msg.name, msg);
|
||||
msg = this.parseMessage();
|
||||
}
|
||||
}.bind(this));
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user