From 589b9df2a7c726860912f9c07a1790897f4be32f Mon Sep 17 00:00:00 2001 From: Snarling <84951833+Snarling@users.noreply.github.com> Date: Mon, 8 Aug 2022 16:13:04 -0400 Subject: [PATCH] remove console.logging from roughlyIs --- src/Netscript/NetscriptHelpers.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Netscript/NetscriptHelpers.ts b/src/Netscript/NetscriptHelpers.ts index b430f1ec7..f525f03ea 100644 --- a/src/Netscript/NetscriptHelpers.ts +++ b/src/Netscript/NetscriptHelpers.ts @@ -473,15 +473,11 @@ function server(ctx: NetscriptContext, s: unknown): Server { } function roughlyIs(expect: object, actual: unknown): boolean { - console.log(expect); - console.log(actual); - if (typeof actual !== "object" || actual == null) return false; const expects = Object.keys(expect); const actuals = Object.keys(actual); for (const expect of expects) if (!actuals.includes(expect)) { - console.log(expect); return false; } return true; @@ -503,6 +499,7 @@ function gangTask(ctx: NetscriptContext, t: unknown): GangMemberTask { throw makeRuntimeErrorMsg(ctx, `task should be a GangMemberTask.`); return t as GangMemberTask; } + function log(ctx: NetscriptContext, message: () => string) { ctx.workerScript.log(ctx.functionPath, message); }