From 2985cf1cec201c3a0a911abf8de16a7624406407 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Wed, 30 Mar 2022 13:44:24 -0400 Subject: [PATCH] fix rm --- src/NetscriptFunctions.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/NetscriptFunctions.ts b/src/NetscriptFunctions.ts index da66cb961..04339b74d 100644 --- a/src/NetscriptFunctions.ts +++ b/src/NetscriptFunctions.ts @@ -2062,9 +2062,8 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS { const iport = helper.getValidPort("getPortHandle", port); return iport; }, - rm: function (_fn: unknown, _hostname: unknown): boolean { + rm: function (_fn: unknown, hostname: any): boolean { const fn = helper.string("rm", "fn", _fn); - let hostname = helper.string("rm", "hostname", _hostname); updateDynamicRam("rm", getRamCost(Player, "rm")); if (hostname == null || hostname === "") {