mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
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.
This commit is contained in:
parent
94d38f941e
commit
3f1d7b9bc6
@ -617,13 +617,13 @@ Connection.prototype.parsed = function (buffer, length) {
|
||||
}
|
||||
|
||||
Connection.prototype.parseInt32 = function (buffer) {
|
||||
var value = buffer.readInt32BE(this.offset, true)
|
||||
var value = buffer.readInt32BE(this.offset)
|
||||
this.offset += 4
|
||||
return value
|
||||
}
|
||||
|
||||
Connection.prototype.parseInt16 = function (buffer) {
|
||||
var value = buffer.readInt16BE(this.offset, true)
|
||||
var value = buffer.readInt16BE(this.offset)
|
||||
this.offset += 2
|
||||
return value
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user