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:
@@ -137,7 +137,7 @@ namespace Aaru.Filesystems
|
||||
|
||||
if(entry.AssociatedFile.Size == 0)
|
||||
{
|
||||
buf = new byte[0];
|
||||
buf = Array.Empty<byte>();
|
||||
|
||||
return Errno.NoError;
|
||||
}
|
||||
@@ -172,7 +172,7 @@ namespace Aaru.Filesystems
|
||||
|
||||
if(entry.ResourceFork.Size == 0)
|
||||
{
|
||||
buf = new byte[0];
|
||||
buf = Array.Empty<byte>();
|
||||
|
||||
return Errno.NoError;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user