Skip to content

Commit 033d5b5

Browse files
committed
Minor refactoring
1 parent 9e7b51e commit 033d5b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

codegen-util.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ const readline = require('readline');
2222
* @returns {Promise<string>}
2323
*/
2424
const askQuestion = (query) => {
25-
const rl = readline.createInterface({
25+
const interface = readline.createInterface({
2626
input: process.stdin,
2727
output: process.stdout,
2828
});
2929
return new Promise((resolve) =>
30-
rl.question(query, (ans) => {
31-
rl.close();
30+
interface.question(`${query} `, (ans) => {
31+
interface.close();
3232
resolve(ans);
3333
}),
3434
);

0 commit comments

Comments
 (0)