remove warning suppression and fix a typo

This commit is contained in:
Kevin Zhang 2021-10-01 17:04:02 -05:00
parent 92c2281def
commit fdc8ae2842

View file

@ -16,9 +16,7 @@ namespace Flow.Launcher.Plugin
{ {
Search = search; Search = search;
RawQuery = rawQuery; RawQuery = rawQuery;
#pragma warning disable 618 Legacy Support
Terms = terms; Terms = terms;
#pragma warning restore 618
SearchTerms = searchTerms; SearchTerms = searchTerms;
ActionKeyword = actionKeyword; ActionKeyword = actionKeyword;
} }
@ -81,7 +79,7 @@ namespace Flow.Launcher.Plugin
/// <summary> /// <summary>
/// strings from second search (including) to last search /// strings from second search (including) to last search
/// </summary> /// </summary>
public string SecondToEndSearch => SearchTerms.Length > 1? _secondToEndSearch ??= string.Join(' ', SearchTerms[1..]]) : ""; public string SecondToEndSearch => SearchTerms.Length > 1 ? (_secondToEndSearch ??= string.Join(' ', SearchTerms[1..])) : "";
/// <summary> /// <summary>
/// Return second search split by space if it has /// Return second search split by space if it has