Fix IDE0028, IDE0300, IDE0301, IDE0302, IDE0303, IDE0304.
Silence IDE0305.
This commit is contained in:
committed by
Pavel Penev
parent
0740991c12
commit
79454d8fd2
@@ -69,7 +69,7 @@ namespace OpenRA.Platforms.Default
|
||||
if (devicesPtr == IntPtr.Zero || AL10.alGetError() != AL10.AL_NO_ERROR)
|
||||
{
|
||||
Log.Write("sound", $"Failed to query OpenAL device list using {label}");
|
||||
return Array.Empty<string>();
|
||||
return [];
|
||||
}
|
||||
|
||||
var devices = new List<string>();
|
||||
@@ -103,7 +103,7 @@ namespace OpenRA.Platforms.Default
|
||||
if (ALC11.alcIsExtensionPresent(IntPtr.Zero, "ALC_ENUMERATION_EXT"))
|
||||
return QueryDevices("ALC_ENUMERATION_EXT", ALC10.ALC_DEVICE_SPECIFIER);
|
||||
|
||||
return Array.Empty<string>();
|
||||
return [];
|
||||
}
|
||||
|
||||
internal static int MakeALFormat(int channels, int bits)
|
||||
|
||||
Reference in New Issue
Block a user