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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user