remove useless condition

This commit is contained in:
Jörg Breitbart
2022-09-28 13:15:34 +02:00
parent 20c1f1a5f7
commit 39eea8ed88
+1 -3
View File
@@ -357,9 +357,7 @@ export class BufferLine implements IBufferLine {
} else {
// slow path: new alloc and full data copy
const data = new Uint32Array(fourByteCells);
if (this.length && this._data.length <= fourByteCells) {
data.set(this._data);
}
data.set(this._data);
this._data = data;
}
for (let i = this.length; i < cols; ++i) {