mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-26 11:10:58 +02:00
CODEBASE: Expand lint rules, and Aliases are stored as maps (#501)
This commit is contained in:
@@ -29,7 +29,7 @@ export function scriptCalculateOfflineProduction(runningScript: RunningScript):
|
||||
|
||||
// Grow
|
||||
for (const hostname of Object.keys(runningScript.dataMap)) {
|
||||
if (runningScript.dataMap.hasOwnProperty(hostname)) {
|
||||
if (Object.hasOwn(runningScript.dataMap, hostname)) {
|
||||
if (runningScript.dataMap[hostname][2] == 0 || runningScript.dataMap[hostname][2] == null) {
|
||||
continue;
|
||||
}
|
||||
@@ -60,7 +60,7 @@ export function scriptCalculateOfflineProduction(runningScript: RunningScript):
|
||||
|
||||
// Weaken
|
||||
for (const hostname of Object.keys(runningScript.dataMap)) {
|
||||
if (runningScript.dataMap.hasOwnProperty(hostname)) {
|
||||
if (Object.hasOwn(runningScript.dataMap, hostname)) {
|
||||
if (runningScript.dataMap[hostname][3] == 0 || runningScript.dataMap[hostname][3] == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user