From 0ceb478e327faf6bdb0da379b245a33a01a6af56 Mon Sep 17 00:00:00 2001 From: Michael Taylor <162068037+mctylr-gh@users.noreply.github.com> Date: Wed, 31 Jul 2024 16:41:54 -0300 Subject: [PATCH] DOC: Typo in ns2 migration doc (#1528) --- src/Documentation/doc/migrations/ns2.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Documentation/doc/migrations/ns2.md b/src/Documentation/doc/migrations/ns2.md index a87518095..fdd1cb40b 100644 --- a/src/Documentation/doc/migrations/ns2.md +++ b/src/Documentation/doc/migrations/ns2.md @@ -61,11 +61,11 @@ export async function main(ns) { const moneyThresh = ns.getServerMaxMoney(target) * 0.9; const securityThresh = ns.getServerMinSecurityLevel(target) + 5; - while(true) { + while (true) { if (ns.getServerSecurityLevel(target) > securityThresh) { await ns.weaken(target); } else if (ns.getServerMoneyAvailable(target) < moneyThresh) { - await ns.grow(target): + await ns.grow(target); } else { await ns.hack(target); }