Skip to content

Commit 3f1d7b9

Browse files
committed
Remove noAssert argument
The support for the `noAssert` argument dropped in the upcoming Node.js v.10.x. All input is then validated no matter if this is set to true or not. Just remove the argument because of that.
1 parent 94d38f9 commit 3f1d7b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/connection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,13 +617,13 @@ Connection.prototype.parsed = function (buffer, length) {
617617
}
618618

619619
Connection.prototype.parseInt32 = function (buffer) {
620-
var value = buffer.readInt32BE(this.offset, true)
620+
var value = buffer.readInt32BE(this.offset)
621621
this.offset += 4
622622
return value
623623
}
624624

625625
Connection.prototype.parseInt16 = function (buffer) {
626-
var value = buffer.readInt16BE(this.offset, true)
626+
var value = buffer.readInt16BE(this.offset)
627627
this.offset += 2
628628
return value
629629
}

0 commit comments

Comments
 (0)