[CodeQuality]Address C# static analyzer suggestions (#29765)

* Address static analyzer suggestions

* address feedback
This commit is contained in:
Davide Giacometti
2023-11-13 17:06:00 +01:00
committed by GitHub
parent 22000228e2
commit 5e7d5d1f7f
6 changed files with 13 additions and 18 deletions

View File

@@ -560,7 +560,7 @@ namespace PowerLauncher
// To populate the AutoCompleteTextBox as soon as the selection is changed or set.
// Setting it here instead of when the text is changed as there is a delay in executing the query and populating the result
if (_viewModel.Results != null && !string.IsNullOrEmpty(SearchBox.QueryTextBox.Text))
if (!string.IsNullOrEmpty(SearchBox.QueryTextBox.Text))
{
SearchBox.AutoCompleteTextBlock.Text = MainViewModel.GetAutoCompleteText(
_viewModel.Results.SelectedIndex,