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);