mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use Array.Empty<T>.
This commit is contained in:
@@ -415,7 +415,7 @@ namespace Aaru.Commands.Filesystem
|
||||
if(error == Errno.NoError)
|
||||
foreach(string xattr in xattrs)
|
||||
{
|
||||
byte[] xattrBuf = new byte[0];
|
||||
byte[] xattrBuf = Array.Empty<byte>();
|
||||
error = fs.GetXattr(path + "/" + entry, xattr, ref xattrBuf);
|
||||
|
||||
if(error != Errno.NoError)
|
||||
@@ -483,7 +483,7 @@ namespace Aaru.Commands.Filesystem
|
||||
|
||||
if(!File.Exists(outputPath))
|
||||
{
|
||||
byte[] outBuf = new byte[0];
|
||||
byte[] outBuf = Array.Empty<byte>();
|
||||
|
||||
error = fs.Read(path + "/" + entry, 0, stat.Length, ref outBuf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user