forked from extern/nushell
Remove unnecessary match statement (#2177)
This commit is contained in:
parent
0934410b38
commit
5f1075544c
@ -801,10 +801,7 @@ pub async fn cli(
|
||||
LineResult::CtrlC => {
|
||||
let config_ctrlc_exit = config::config(Tag::unknown())?
|
||||
.get("ctrlc_exit")
|
||||
.map(|s| match s.value.expect_string() {
|
||||
"true" => true,
|
||||
_ => false,
|
||||
})
|
||||
.map(|s| s.value.expect_string() == "true")
|
||||
.unwrap_or(false); // default behavior is to allow CTRL-C spamming similar to other shells
|
||||
|
||||
if !config_ctrlc_exit {
|
||||
|
Loading…
Reference in New Issue
Block a user