mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-02 07:31:38 +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
|
||||
for (let i = 0; i < 2; i += 1) {
|
||||
const idx = tileIdx + i;
|
||||
if (idx < 0) {
|
||||
continue;
|
||||
}
|
||||
if (idx >= this._tiles.length) {
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user