Fix a syntax error in libs/buffer.js

This commit is contained in:
史林 2018-07-30 12:09:59 +08:00 committed by Antonin Stefanutti
parent 48b65eb379
commit 2743529295
No known key found for this signature in database
GPG Key ID: 451D46E2047E7837

View File

@ -7,7 +7,7 @@ class BufferReader {
read(inAmount) {
const arr = [];
const amount = this.rposition + inAmount;
let amount = this.rposition + inAmount;
if (amount > this.buffer.length) {
amount = this.buffer.length - this.rposition;
}