remove lower bound check as we don't go negative anymore

This commit is contained in:
Bruno Windels 2022-11-25 11:51:38 +01:00
parent 31f53d27c1
commit cb0ab589de

View File

@ -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;
} }