chore: fix ESLint errors (#10278)
This commit is contained in:
parent
4f0840ab88
commit
f08062b1de
@ -103,8 +103,7 @@ export default async function({
|
|||||||
}
|
}
|
||||||
|
|
||||||
function readStdin(): Promise<string> {
|
function readStdin(): Promise<string> {
|
||||||
return new Promise(
|
return new Promise((resolve: Function, reject: Function): void => {
|
||||||
(resolve: Function, reject: Function): void => {
|
|
||||||
let code = "";
|
let code = "";
|
||||||
|
|
||||||
process.stdin.setEncoding("utf8");
|
process.stdin.setEncoding("utf8");
|
||||||
@ -119,8 +118,7 @@ export default async function({
|
|||||||
resolve(code);
|
resolve(code);
|
||||||
});
|
});
|
||||||
process.stdin.on("error", reject);
|
process.stdin.on("error", reject);
|
||||||
},
|
});
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function stdin(): Promise<void> {
|
async function stdin(): Promise<void> {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user