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:
ryanbodrug-microsoft 2020-06-18 08:43:58 -07:00
parent 2d890603c6
commit 6ea181c286

View File

@ -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;
}