mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23: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 {
|
||||
for (const prop of Object.keys(vars)) {
|
||||
switch (typeof vars[prop]) {
|
||||
case 'function': {
|
||||
vars[prop] = wrap([...tree, prop].join('.'), vars[prop]);
|
||||
case "function": {
|
||||
vars[prop] = wrap([...tree, prop].join("."), vars[prop]);
|
||||
break;
|
||||
}
|
||||
case 'object': {
|
||||
case "object": {
|
||||
if (Array.isArray(vars[prop])) continue;
|
||||
wrapObject(vars[prop], ...tree, prop)
|
||||
wrapObject(vars[prop], ...tree, prop);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user