From 443d2164ef9ce3a67c2dd4c985198b2f11a8e576 Mon Sep 17 00:00:00 2001 From: Milo <50248166+Milo123459@users.noreply.github.com> Date: Mon, 28 Jun 2021 17:52:57 +0100 Subject: [PATCH] remove unneeded ifs --- crates/ide/src/status.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/crates/ide/src/status.rs b/crates/ide/src/status.rs index 6cde06eaa277..cf9849272cae 100644 --- a/crates/ide/src/status.rs +++ b/crates/ide/src/status.rs @@ -42,15 +42,7 @@ pub(crate) fn status(db: &RootDatabase, file_id: Option) -> String { format_to!(buf, "{} (Macros)\n", macro_syntax_tree_stats(db)); format_to!(buf, "{} in total\n", memory_usage()); if env::var("RA_COUNT").is_ok() { - format_to!( - buf, - "\nCounts:\n{}", - if count.to_string().contains("all counts are zero") { - String::from("All counts are zero\n") - } else { - count.to_string() - } - ); + format_to!(buf, "\nCounts:\n{}", count.to_string()); } if let Some(file_id) = file_id {