mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-27 11:27:04 +02:00
More hotfix
* Fix empty solution for all valid math expressions
This commit is contained in:
@@ -22,6 +22,6 @@ export function arrayToString(a: unknown[]): string {
|
||||
return `[${vals.join(", ")}]`;
|
||||
}
|
||||
|
||||
export function FilterTruthy<T>(input: T[]): Truthy<T>[] {
|
||||
export function filterTruthy<T>(input: T[]): Truthy<T>[] {
|
||||
return input.filter(Boolean) as Truthy<T>[];
|
||||
}
|
||||
|
||||
@@ -227,9 +227,8 @@ export const v2APIBreak = () => {
|
||||
offenders: [],
|
||||
});
|
||||
}
|
||||
|
||||
// API break function is called before the version31 2.3.0 changes, scripts are still an array.
|
||||
for (const script of home.scripts.values() as unknown as Script[]) {
|
||||
// V31/2.3.0 conversion of scripts to map has already occurred.
|
||||
for (const script of home.scripts.values()) {
|
||||
processScript(rules, script);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user