mirror of https://git.tuxpa.in/a/code-server.git
parent
20f5d8eeed
commit
a0c443d8d3
|
@ -32,12 +32,14 @@ export class CP {
|
||||||
if (typeof options === "function") {
|
if (typeof options === "function") {
|
||||||
callback = options;
|
callback = options;
|
||||||
}
|
}
|
||||||
// @ts-ignore not sure how to make this work.
|
if (callback) {
|
||||||
callback(
|
// @ts-ignore not sure how to make this work.
|
||||||
error,
|
callback(
|
||||||
useBuffer(options) ? Buffer.from(stdout) : stdout,
|
error,
|
||||||
useBuffer(options) ? Buffer.from(stderr) : stderr,
|
useBuffer(options) ? Buffer.from(stdout) : stdout,
|
||||||
);
|
useBuffer(options) ? Buffer.from(stderr) : stderr,
|
||||||
|
);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// @ts-ignore TODO: not fully implemented
|
// @ts-ignore TODO: not fully implemented
|
||||||
|
|
Loading…
Reference in New Issue