use Array.empty instead of new [0] to avoid unused allocation

This commit is contained in:
弘韬 张 2020-12-20 17:25:14 +08:00
parent d3e88c478a
commit f693f1c6af

View file

@ -481,7 +481,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
{
ProgramLogger.LogException("|Win32|All|Not available|An unexpected error occurred", e);
return new Win32[0];
return Array.Empty<Win32>();
}
#endif
}