CA1820: use IsNullOrEmpty.

This commit is contained in:
Huo Yaoyuan 2019-11-28 22:07:46 +08:00
parent 3c39fde7ff
commit 09257b0c6d
2 changed files with 1 additions and 2 deletions

View File

@ -48,7 +48,6 @@
<Rule Id="CA1307" Action="None" />
<Rule Id="CA1308" Action="None" />
<Rule Id="CA1816" Action="None" />
<Rule Id="CA1820" Action="None" />
<Rule Id="CA1826" Action="None" />
<Rule Id="CA2000" Action="None" />
<Rule Id="CA2008" Action="None" />

View File

@ -116,7 +116,7 @@ public DirectOverlay()
Filter.Search.Current.ValueChanged += text =>
{
if (text.NewValue != string.Empty)
if (!string.IsNullOrEmpty(text.NewValue))
{
Header.Tabs.Current.Value = DirectTab.Search;