From 3458b57c7d9ba2637954019f1233eb3a2abfb562 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Wed, 30 Mar 2022 13:37:10 -0400 Subject: [PATCH] fix tail --- src/NetscriptFunctions.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/NetscriptFunctions.ts b/src/NetscriptFunctions.ts index 808ed33bf..da66cb961 100644 --- a/src/NetscriptFunctions.ts +++ b/src/NetscriptFunctions.ts @@ -899,9 +899,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS { return runningScriptObj.logs.slice(); }, - tail: function (_fn: unknown, _hostname: unknown = workerScript.hostname, ...scriptArgs: any[]): void { - const fn = helper.string("tail", "fn", _fn); - const hostname = helper.string("tail", "hostname", _hostname); + tail: function (fn: any, hostname: any = workerScript.hostname, ...scriptArgs: any[]): void { updateDynamicRam("tail", getRamCost(Player, "tail")); let runningScriptObj; if (arguments.length === 0) {