mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-23 19:49:43 +01:00
Fix for:
Warning CA1820 Test for empty strings using 'string.Length' property or 'string.IsNullOrEmpty' method instead of an Equality check. PowerLauncher C:\Repos\PowerToys\src\modules\launcher\PowerLauncher\MainWindow.xaml.cs 291 Active
This commit is contained in:
@@ -299,7 +299,7 @@ namespace PowerLauncher
|
||||
else
|
||||
{
|
||||
var text = ((TextBox)sender).Text;
|
||||
if (text == string.Empty)
|
||||
if (string.IsNullOrEmpty(text))
|
||||
{
|
||||
SearchBox.AutoCompleteTextBlock.Text = string.Empty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user