mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
Refactor for ... in loops
This commit is contained in:
@@ -24,7 +24,7 @@ export class HashManager {
|
||||
upgrades: IMap<number> = {};
|
||||
|
||||
constructor() {
|
||||
for (const name in HashUpgrades) {
|
||||
for (const name of Object.keys(HashUpgrades)) {
|
||||
this.upgrades[name] = 0;
|
||||
}
|
||||
}
|
||||
@@ -85,7 +85,7 @@ export class HashManager {
|
||||
}
|
||||
|
||||
prestige(): void {
|
||||
for (const name in HashUpgrades) {
|
||||
for (const name of Object.keys(HashUpgrades)) {
|
||||
this.upgrades[name] = 0;
|
||||
}
|
||||
this.hashes = 0;
|
||||
|
||||
Reference in New Issue
Block a user