Skip to content

Commit fdc8ae2

Browse files
committed
remove warning suppression and fix a typo
1 parent 92c2281 commit fdc8ae2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Flow.Launcher.Plugin/Query.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ public Query(string rawQuery, string search, string[] terms, string[] searchTerm
1616
{
1717
Search = search;
1818
RawQuery = rawQuery;
19-
#pragma warning disable 618 Legacy Support
2019
Terms = terms;
21-
#pragma warning restore 618
2220
SearchTerms = searchTerms;
2321
ActionKeyword = actionKeyword;
2422
}
@@ -81,7 +79,7 @@ public Query(string rawQuery, string search, string[] terms, string[] searchTerm
8179
/// <summary>
8280
/// strings from second search (including) to last search
8381
/// </summary>
84-
public string SecondToEndSearch => SearchTerms.Length > 1? _secondToEndSearch ??= string.Join(' ', SearchTerms[1..]]) : "";
82+
public string SecondToEndSearch => SearchTerms.Length > 1 ? (_secondToEndSearch ??= string.Join(' ', SearchTerms[1..])) : "";
8583

8684
/// <summary>
8785
/// Return second search split by space if it has

0 commit comments

Comments
 (0)