We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
n
y
1 parent aa7ac87 commit 4cb23aaCopy full SHA for 4cb23aa
1 file changed
src/lib/deploy.ts
@@ -157,10 +157,11 @@ async function askYesNo(
157
const yn = `${letter("y")}/${letter("n")}`;
158
const response: string = await q(`${question} (${yn}) `);
159
readline.close();
160
- if (response.toLowerCase() || options?.default === "y") {
+ const choice = response.toLowerCase() || options?.default;
161
+ if (choice === "y") {
162
return true;
163
}
- if (response.toLowerCase() || options?.default === "n") {
164
+ if (choice === "n") {
165
return false;
166
167
0 commit comments