From 433873c5e2935fd90e1b5d83ab113feccb36b6b9 Mon Sep 17 00:00:00 2001 From: TheMas3212 Date: Tue, 12 Apr 2022 08:27:53 +1000 Subject: [PATCH] run formater --- src/NetscriptWorker.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/NetscriptWorker.ts b/src/NetscriptWorker.ts index 48d3e3ea4..e0c0512b2 100644 --- a/src/NetscriptWorker.ts +++ b/src/NetscriptWorker.ts @@ -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; } }