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:
@@ -104,7 +104,7 @@ namespace Aaru.Filesystems
|
||||
|
||||
if(size == 0)
|
||||
{
|
||||
buf = new byte[0];
|
||||
buf = Array.Empty<byte>();
|
||||
|
||||
return Errno.NoError;
|
||||
}
|
||||
@@ -223,7 +223,7 @@ namespace Aaru.Filesystems
|
||||
uint[] GetClusters(uint startCluster)
|
||||
{
|
||||
if(startCluster == 0)
|
||||
return new uint[0];
|
||||
return Array.Empty<uint>();
|
||||
|
||||
if(startCluster >= XmlFsType.Clusters)
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user