Use Array.Empty<T>.

This commit is contained in:
2021-08-17 18:21:12 +01:00
parent f14592b392
commit fdff1d74c9
41 changed files with 98 additions and 86 deletions

View File

@@ -30,6 +30,7 @@
// Copyright © 2011-2021 Natalia Portillo
// ****************************************************************************/
using System;
using Aaru.Console;
using Aaru.Decoders.ATA;
@@ -196,7 +197,7 @@ namespace Aaru.Devices
out double duration)
{
lba = 0;
byte[] buffer = new byte[0];
byte[] buffer = Array.Empty<byte>();
var registers = new AtaRegistersLba28
{
@@ -341,7 +342,7 @@ namespace Aaru.Devices
/// <returns><c>true</c> if the device set an error condition, <c>false</c> otherwise</returns>
public bool Seek(out AtaErrorRegistersLba28 statusRegisters, uint lba, uint timeout, out double duration)
{
byte[] buffer = new byte[0];
byte[] buffer = Array.Empty<byte>();
var registers = new AtaRegistersLba28
{