From 42bd536538449d31c5b658cf1c4a249aa3eb3414 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Wed, 20 Apr 2022 10:00:05 -0400 Subject: [PATCH] remove unnecessary check --- src/math_app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/math_app.rs b/src/math_app.rs index 42aa504..4f3a03f 100644 --- a/src/math_app.rs +++ b/src/math_app.rs @@ -466,7 +466,7 @@ impl MathApp { } // Remove function if the user requests it - if can_remove && let Some(remove_i_unwrap) = remove_i { + if let Some(remove_i_unwrap) = remove_i { self.functions.remove(remove_i_unwrap); }