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

@@ -184,7 +184,7 @@ namespace Aaru.Filesystems
if(size == 0)
{
buf = new byte[0];
buf = Array.Empty<byte>();
return Errno.NoError;
}
@@ -328,7 +328,7 @@ namespace Aaru.Filesystems
{
if(entry.flRPyLen == 0)
{
buf = new byte[0];
buf = Array.Empty<byte>();
return Errno.NoError;
}
@@ -339,7 +339,7 @@ namespace Aaru.Filesystems
{
if(entry.flPyLen == 0)
{
buf = new byte[0];
buf = Array.Empty<byte>();
return Errno.NoError;
}