mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-11 10:13:52 +01:00
added early out for redundant assignment
This commit is contained in:
parent
8b55b0293c
commit
51d10290d2
@ -184,6 +184,7 @@ export class OfficeSpace {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (jobCount == amount) return false;
|
||||||
if ((jobCount + unassignedCount) < amount) return false;
|
if ((jobCount + unassignedCount) < amount) return false;
|
||||||
|
|
||||||
for (let i = 0; i < this.employees.length; ++i) {
|
for (let i = 0; i < this.employees.length; ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user