mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-01 05:17:04 +02:00
CODEBASE: Fix lint errors 3 (#1758)
This is a really big refactor because it actually *fixes* a lot of the lint errors instead of disabling them.
This commit is contained in:
@@ -165,9 +165,9 @@ function fieldEquals(a: boolean[][], b: boolean[][]): boolean {
|
||||
}
|
||||
|
||||
function generateEmptyField(difficulty: Difficulty): boolean[][] {
|
||||
const field = [];
|
||||
const field: boolean[][] = [];
|
||||
for (let i = 0; i < Math.round(difficulty.height); i++) {
|
||||
field.push(new Array(Math.round(difficulty.width)).fill(false));
|
||||
field.push(new Array<boolean>(Math.round(difficulty.width)).fill(false));
|
||||
}
|
||||
return field;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user