mirror of
https://github.com/astefanutti/decktape.git
synced 2024-11-30 10:34:30 +03:00
Fix a syntax error in libs/buffer.js
This commit is contained in:
parent
48b65eb379
commit
2743529295
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user