fix jshint errors in lib/connection.js

This commit is contained in:
Philipp Borgers 2013-01-24 01:08:32 +01:00
parent 5df417e589
commit d8255c6f85

View File

@ -67,9 +67,12 @@ p.connect = function(port, host) {
self.attachListeners(self.stream); self.attachListeners(self.stream);
self.emit('sslconnect'); self.emit('sslconnect');
} else { } else {
self.emit('error', new Error("The server doesn't support SSL/TLS connections.")); self.emit(
'error',
new Error("The server doesn't support SSL/TLS connections.")
);
} }
}); });
} else { } else {
this.attachListeners(this.stream); this.attachListeners(this.stream);
@ -570,7 +573,8 @@ p.parseInt16 = function() {
}; };
p.readString = function(length) { p.readString = function(length) {
return this.buffer.toString(this.encoding, this.offset, (this.offset += length)); return this.buffer.toString(this.encoding, this.offset,
(this.offset += length));
}; };
p.readBytes = function(length) { p.readBytes = function(length) {