mirror of https://github.com/ppy/osu
CA1820: use IsNullOrEmpty.
This commit is contained in:
parent
3c39fde7ff
commit
09257b0c6d
|
@ -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" />
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue