fix: del err path check

This commit is contained in:
YuMao233 2025-01-18 12:53:19 +08:00
parent a060540995
commit 56eb8c1640

View File

@ -48,13 +48,6 @@ export class GoPtyProcessAdapter extends EventEmitter implements IInstanceProces
}
private initNamedPipe() {
if (!fs.existsSync(this.pipeName)) {
throw new Error(
$t("TXT_CODE_9d1d244f", {
pipeName: this.pipeName
})
);
}
const fd = fs.openSync(this.pipeName, "w");
const writePipe = fs.createWriteStream("", { fd });
writePipe.on("close", () => {});