mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 09:42:53 +02:00
unknown-ify coding contract API.
This commit is contained in:
@@ -163,7 +163,7 @@ export class BaseServer {
|
||||
return false;
|
||||
}
|
||||
|
||||
removeContract(contract: CodingContract): void {
|
||||
removeContract(contract: CodingContract | string): void {
|
||||
if (contract instanceof CodingContract) {
|
||||
this.contracts = this.contracts.filter((c) => {
|
||||
return c.fn !== contract.fn;
|
||||
|
||||
Reference in New Issue
Block a user