chore: fix ESLint errors (#10278)

This commit is contained in:
Huáng Jùnliàng 2019-07-29 11:14:11 -04:00 committed by Brian Ng
parent 4f0840ab88
commit f08062b1de

View File

@ -103,8 +103,7 @@ export default async function({
}
function readStdin(): Promise<string> {
return new Promise(
(resolve: Function, reject: Function): void => {
return new Promise((resolve: Function, reject: Function): void => {
let code = "";
process.stdin.setEncoding("utf8");
@ -119,8 +118,7 @@ export default async function({
resolve(code);
});
process.stdin.on("error", reject);
},
);
});
}
async function stdin(): Promise<void> {