From db65bf91fda1e540861c4812bfb2ac1e5cf792ed Mon Sep 17 00:00:00 2001 From: Tig Date: Mon, 6 May 2024 08:39:24 -0600 Subject: [PATCH] Code Cleanup --- Terminal.Gui/Application.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Terminal.Gui/Application.cs b/Terminal.Gui/Application.cs index c7c634212..dfdae2b0b 100644 --- a/Terminal.Gui/Application.cs +++ b/Terminal.Gui/Application.cs @@ -571,13 +571,8 @@ public static partial class Application /// if a view positioned the cursor and the position is visible. internal static bool PositionCursor (View view) { - if (view is null) - { - return false; - } - // Find the most focused view and position the cursor there. - View mostFocused = view.MostFocused; + View mostFocused = view?.MostFocused; if (mostFocused is null) {