Skip to content

Commit 159d16c

Browse files
committed
[fix] remove defaultValue fallback in Ask method to preserve null on Escape
1 parent 1abe7f4 commit 159d16c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/EtcdTerminal.App/Engine/Prompt.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static class Prompt
2323

2424
var input = ReadLine(defaultValue);
2525

26-
return input ?? defaultValue;
26+
return input;
2727
}
2828

2929
public static string? Secret(string prompt)

0 commit comments

Comments
 (0)