mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-02 15:41:41 +01:00
remove lower bound check as we don't go negative anymore
This commit is contained in:
parent
31f53d27c1
commit
cb0ab589de
@ -157,9 +157,6 @@ export class TilesCollection extends BaseObservableList {
|
|||||||
// next next tile
|
// next next tile
|
||||||
for (let i = 0; i < 2; i += 1) {
|
for (let i = 0; i < 2; i += 1) {
|
||||||
const idx = tileIdx + i;
|
const idx = tileIdx + i;
|
||||||
if (idx < 0) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (idx >= this._tiles.length) {
|
if (idx >= this._tiles.length) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user