mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 01:53:48 +01:00
run formater
This commit is contained in:
parent
8d5632eb3e
commit
433873c5e2
@ -119,13 +119,13 @@ function startNetscript2Script(player: IPlayer, workerScript: WorkerScript): Pro
|
|||||||
function wrapObject(vars: any, ...tree: string[]): void {
|
function wrapObject(vars: any, ...tree: string[]): void {
|
||||||
for (const prop of Object.keys(vars)) {
|
for (const prop of Object.keys(vars)) {
|
||||||
switch (typeof vars[prop]) {
|
switch (typeof vars[prop]) {
|
||||||
case 'function': {
|
case "function": {
|
||||||
vars[prop] = wrap([...tree, prop].join('.'), vars[prop]);
|
vars[prop] = wrap([...tree, prop].join("."), vars[prop]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'object': {
|
case "object": {
|
||||||
if (Array.isArray(vars[prop])) continue;
|
if (Array.isArray(vars[prop])) continue;
|
||||||
wrapObject(vars[prop], ...tree, prop)
|
wrapObject(vars[prop], ...tree, prop);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user