mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 20:25:45 +01:00
Fix rm on .cct files (#880)
This commit is contained in:
parent
445c0c3134
commit
5d266e01a6
@ -202,7 +202,7 @@ export abstract class BaseServer implements IServer {
|
||||
return { res: true };
|
||||
}
|
||||
if (path.endsWith(".cct")) {
|
||||
const contractIndex = this.contracts.findIndex((program) => program);
|
||||
const contractIndex = this.contracts.findIndex((contracts) => contracts.fn === path);
|
||||
if (contractIndex === -1) return { res: false, msg: `Contract file ${path} does not exist` };
|
||||
this.contracts.splice(contractIndex, 1);
|
||||
return { res: true };
|
||||
|
Loading…
Reference in New Issue
Block a user