Skip to content

Commit

Permalink
When defaultValue is empty don't show prompts empty square brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
zph committed Apr 30, 2024
1 parent eb7ed61 commit f4faf22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli/js/40_jupyter.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,10 @@ function enableJupyter() {
defaultValue = "",
{ password = false } = {},
) {
const answer = await input(`${message} [${defaultValue}] `, password);
if (defaultValue != "") {
message += ` [${defaultValue}]`;
}
const answer = await input(`${message}`, password);

if (answer === "") {
return defaultValue;
Expand Down

0 comments on commit f4faf22

Please sign in to comment.