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

@@ -315,7 +315,7 @@ namespace Aaru.Tests.Filesystems
stat.Should().BeEquivalentTo(child.Value.Info, $"Wrong info for \"{childPath}\" in {testFile}");
byte[] buffer = new byte[0];
byte[] buffer = Array.Empty<byte>();
if(child.Value.Info.Attributes.HasFlag(FileAttributes.Directory))
{
@@ -402,7 +402,7 @@ namespace Aaru.Tests.Filesystems
foreach(KeyValuePair<string, string> xattr in xattrs)
{
byte[] buffer = new byte[0];
byte[] buffer = Array.Empty<byte>();
Errno ret = fs.GetXattr(path, xattr.Key, ref buffer);
if(ret == Errno.NoSuchExtendedAttribute ||