From e1aff1a31522773a75a5012a9a01a4122fe0b8d0 Mon Sep 17 00:00:00 2001 From: Snarling <84951833+Snarling@users.noreply.github.com> Date: Fri, 28 Apr 2023 11:49:05 -0400 Subject: [PATCH] Lint fix --- src/NetscriptFunctions.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/NetscriptFunctions.ts b/src/NetscriptFunctions.ts index 1a0f49a4d..346ebbc9d 100644 --- a/src/NetscriptFunctions.ts +++ b/src/NetscriptFunctions.ts @@ -1639,8 +1639,7 @@ export const ns: InternalAPI = { $.get( url, function (data) { - let res; - res = server.writeToContentFile(target, data); + const res = server.writeToContentFile(target, data); if (res.overwritten) { helpers.log(ctx, () => `Successfully retrieved content and overwrote '${target}' on '${hostname}'`); return resolve(true);