mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-15 03:20:30 +00:00
CA1820: use string.IsNullOrEmpty.
This commit is contained in:
@@ -59,7 +59,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="CA1827" Action="None" />
|
||||
<Rule Id="CA2000" Action="None" />
|
||||
|
||||
@@ -316,7 +316,7 @@ namespace osu.Framework.Audio
|
||||
{
|
||||
try
|
||||
{
|
||||
if (AudioDevice.Value == string.Empty)
|
||||
if (string.IsNullOrEmpty(AudioDevice.Value))
|
||||
{
|
||||
// use default device
|
||||
var device = Bass.GetDeviceInfo(Bass.CurrentDevice);
|
||||
|
||||
Reference in New Issue
Block a user