Skip to content

Commit 336613a

Browse files
committed
Use collection expression.
1 parent ef922e9 commit 336613a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Magick.NET.Core/Profiles/ImageProfile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ protected virtual void UpdateData()
159159
private static byte[] Copy(byte[]? data)
160160
{
161161
if (data is null || data.Length == 0)
162-
return Array.Empty<byte>();
162+
return [];
163163

164164
var result = new byte[data.Length];
165165
data.CopyTo(result, 0);

0 commit comments

Comments
 (0)