Skip to content

Commit 2eeaf38

Browse files
Jack251970Copilot
andauthored
Improve code quality
Co-authored-by: Copilot <[email protected]>
1 parent 1f019a1 commit 2eeaf38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher.Core/Plugin/PluginConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private static PluginMetadata GetPluginMetadata(string pluginDirectory)
119119
// for plugins which doesn't has ActionKeywords key
120120
metadata.ActionKeywords ??= new List<string> { metadata.ActionKeyword };
121121
// for plugin still use old ActionKeyword
122-
metadata.ActionKeyword = metadata.ActionKeywords?.Count == 0 ? string.Empty : metadata.ActionKeywords?[0];
122+
metadata.ActionKeyword = metadata.ActionKeywords?.FirstOrDefault() ?? string.Empty;
123123
}
124124
catch (Exception e)
125125
{

0 commit comments

Comments
 (0)