From fdc8ae2842b0cf2764c4e240f04c06457a5ff9cb Mon Sep 17 00:00:00 2001
From: Kevin Zhang <45326534+taooceros@users.noreply.github.com>
Date: Fri, 1 Oct 2021 17:04:02 -0500
Subject: [PATCH] remove warning suppression and fix a typo
---
Flow.Launcher.Plugin/Query.cs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/Flow.Launcher.Plugin/Query.cs b/Flow.Launcher.Plugin/Query.cs
index dfa9e5df1..3fcf3c1d7 100644
--- a/Flow.Launcher.Plugin/Query.cs
+++ b/Flow.Launcher.Plugin/Query.cs
@@ -16,9 +16,7 @@ namespace Flow.Launcher.Plugin
{
Search = search;
RawQuery = rawQuery;
-#pragma warning disable 618 Legacy Support
Terms = terms;
-#pragma warning restore 618
SearchTerms = searchTerms;
ActionKeyword = actionKeyword;
}
@@ -81,7 +79,7 @@ namespace Flow.Launcher.Plugin
///
/// strings from second search (including) to last search
///
- public string SecondToEndSearch => SearchTerms.Length > 1? _secondToEndSearch ??= string.Join(' ', SearchTerms[1..]]) : "";
+ public string SecondToEndSearch => SearchTerms.Length > 1 ? (_secondToEndSearch ??= string.Join(' ', SearchTerms[1..])) : "";
///
/// Return second search split by space if it has