Skip to content

Commit

Permalink
Update AssemblyExtensions.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Apr 15, 2024
1 parent e513c35 commit 2c3a7a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FodyIsolated/AssemblyExtensions.cs
Expand Up @@ -20,7 +20,7 @@ public static string GetVersion(this Assembly assembly)
private static TAttibute? GetAssemblyAttribute<TAttibute>(Assembly assembly)
where TAttibute : Attribute
{
var attibutes = assembly.GetCustomAttributes(typeof(TAttibute))?.ToArray() ?? Array.Empty<Attribute>();
var attibutes = assembly.GetCustomAttributes(typeof(TAttibute))?.ToArray() ?? [];
return attibutes.Length > 0 ? attibutes[0] as TAttibute : null;
}
}

0 comments on commit 2c3a7a8

Please sign in to comment.