From 74be61cbdd769261cf95e3e323f7af651066d546 Mon Sep 17 00:00:00 2001 From: Snarling <84951833+Snarling@users.noreply.github.com> Date: Mon, 29 Aug 2022 03:34:38 -0400 Subject: [PATCH] remove unnecessary return --- src/NetscriptWorker.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/NetscriptWorker.ts b/src/NetscriptWorker.ts index e134ded37..8d39e9a71 100644 --- a/src/NetscriptWorker.ts +++ b/src/NetscriptWorker.ts @@ -62,7 +62,6 @@ async function startNetscript2Script(workerScript: WorkerScript): Promise throw `${script.filename} cannot be run because it does not have a main function.`; if (!ns) throw `${script.filename} cannot be run because the NS object hasn't been constructed properly.`; await loadedModule.main(ns); - return; } async function startNetscript1Script(workerScript: WorkerScript): Promise {