From 2c3a7a8c58d6a92737d3c79db36db59f5d19f0fc Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Mon, 15 Apr 2024 19:28:24 +1000 Subject: [PATCH] Update AssemblyExtensions.cs --- FodyIsolated/AssemblyExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FodyIsolated/AssemblyExtensions.cs b/FodyIsolated/AssemblyExtensions.cs index a08249b5c..488773bd3 100644 --- a/FodyIsolated/AssemblyExtensions.cs +++ b/FodyIsolated/AssemblyExtensions.cs @@ -20,7 +20,7 @@ public static string GetVersion(this Assembly assembly) private static TAttibute? GetAssemblyAttribute(Assembly assembly) where TAttibute : Attribute { - var attibutes = assembly.GetCustomAttributes(typeof(TAttibute))?.ToArray() ?? Array.Empty(); + var attibutes = assembly.GetCustomAttributes(typeof(TAttibute))?.ToArray() ?? []; return attibutes.Length > 0 ? attibutes[0] as TAttibute : null; } }