From 5f1075544c93a31967ce6e901377b870fa2e0d1d Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Tue, 14 Jul 2020 20:17:28 -0400 Subject: [PATCH] Remove unnecessary match statement (#2177) --- crates/nu-cli/src/cli.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/nu-cli/src/cli.rs b/crates/nu-cli/src/cli.rs index d5e35886fb..7406317cad 100644 --- a/crates/nu-cli/src/cli.rs +++ b/crates/nu-cli/src/cli.rs @@ -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 {