mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-26 03:00:56 +02:00
Refactor for ... in loops
This commit is contained in:
@@ -28,7 +28,7 @@ export function Programs(props: IProps): React.ReactElement {
|
||||
}
|
||||
|
||||
function addAllPrograms(): void {
|
||||
for (const i in AllPrograms) {
|
||||
for (const i of Object.keys(AllPrograms)) {
|
||||
if (!props.player.hasProgram(AllPrograms[i].name)) {
|
||||
props.player.getHomeComputer().programs.push(AllPrograms[i].name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user