fix jshint errors in lib/connection.js
This commit is contained in:
parent
5df417e589
commit
d8255c6f85
@ -67,7 +67,10 @@ 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.")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user