2015/3: fix red lines (assert arrays)
This commit is contained in:
@@ -28,8 +28,8 @@ export default async function runner(inputPath: string) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(!map[x]) map[x] = [];
|
if(!map[x]) map[x] = [];
|
||||||
if(map[x][y]) continue;
|
if(map[x]![y]) continue;
|
||||||
map[x][y] = true;
|
map[x]![y] = true;
|
||||||
|
|
||||||
houses++;
|
houses++;
|
||||||
|
|
||||||
|
|||||||
@@ -35,10 +35,10 @@ export default async function runner(inputPath: string) {
|
|||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
if(!map[x]) map[x] = [];
|
if(!map[x]) map[x] = [];
|
||||||
if(map[x][y]) {
|
if(map[x]![y]) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
map[x][y] = true;
|
map[x]![y] = true;
|
||||||
|
|
||||||
houses++;
|
houses++;
|
||||||
} else {
|
} else {
|
||||||
@@ -58,10 +58,10 @@ export default async function runner(inputPath: string) {
|
|||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
if(!map[roboX]) map[roboX] = [];
|
if(!map[roboX]) map[roboX] = [];
|
||||||
if(map[roboX][roboY]) {
|
if(map[roboX]![roboY]) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
map[roboX][roboY] = true;
|
map[roboX]![roboY] = true;
|
||||||
|
|
||||||
houses++;
|
houses++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user