From 9557d7ea240f05478c44d6bbfc1a1a821a9d3afe Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Sun, 6 Jun 2021 14:31:47 +0800 Subject: [PATCH] No need for the temp variable --- Flow.Launcher/ViewModel/MainViewModel.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index 9a475de1f..4ee15b46d 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -547,11 +547,7 @@ namespace Flow.Launcher.ViewModel private void RemoveOldQueryResults(Query query) { - string lastKeyword = _lastQuery.ActionKeyword; - - string keyword = query.ActionKeyword; - - if (lastKeyword != keyword) + if (_lastQuery.ActionKeyword != query.ActionKeyword) { Results.Clear(); }