Skip to content

Commit b24f90f

Browse files
committed
fix: resolve eslint errors in prompt.ts
1 parent 3d55ade commit b24f90f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/prompt.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export async function select<T>(
148148
const defaultSuffix = options.defaultIndex ? ` (default: ${options.defaultIndex})` : ''
149149
const prompt = `\nEnter number${defaultSuffix}: `
150150

151-
return new Promise((resolve, reject) => {
151+
return new Promise((resolve, _reject) => {
152152
const askQuestion = () => {
153153
rl.question(prompt, (answer) => {
154154
const trimmed = answer.trim()
@@ -177,7 +177,7 @@ export async function select<T>(
177177
rl.close()
178178
resolve(selected)
179179
} else {
180-
console.log(`Invalid selection`)
180+
console.log('Invalid selection')
181181
askQuestion()
182182
}
183183
})

0 commit comments

Comments
 (0)