mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 05:05:47 +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 };
|
return { res: true };
|
||||||
}
|
}
|
||||||
if (path.endsWith(".cct")) {
|
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` };
|
if (contractIndex === -1) return { res: false, msg: `Contract file ${path} does not exist` };
|
||||||
this.contracts.splice(contractIndex, 1);
|
this.contracts.splice(contractIndex, 1);
|
||||||
return { res: true };
|
return { res: true };
|
||||||
|
Loading…
Reference in New Issue
Block a user