Skip to content

Commit 5f976b9

Browse files
committed
Remove useless assignment
1 parent ee0b039 commit 5f976b9

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

Flow.Launcher.Core/Plugin/PluginsLoader.cs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.IO;
43
using System.Linq;
54
using System.Reflection;
65
using System.Threading.Tasks;
@@ -139,15 +138,11 @@ public static IEnumerable<PluginPair> ExecutablePlugins(IEnumerable<PluginMetada
139138
.Where(o => o.Language.Equals(AllowedLanguage.Executable, StringComparison.OrdinalIgnoreCase))
140139
.Select(metadata =>
141140
{
142-
var plugin = new PluginPair
141+
return new PluginPair
143142
{
144143
Plugin = new ExecutablePlugin(metadata.ExecuteFilePath),
145144
Metadata = metadata
146145
};
147-
148-
plugin.Metadata.AssemblyName = string.Empty;
149-
150-
return plugin;
151146
});
152147
}
153148

@@ -157,15 +152,11 @@ public static IEnumerable<PluginPair> ExecutableV2Plugins(IEnumerable<PluginMeta
157152
.Where(o => o.Language.Equals(AllowedLanguage.ExecutableV2, StringComparison.OrdinalIgnoreCase))
158153
.Select(metadata =>
159154
{
160-
var plugin = new PluginPair
155+
return new PluginPair
161156
{
162157
Plugin = new ExecutablePlugin(metadata.ExecuteFilePath),
163158
Metadata = metadata
164159
};
165-
166-
plugin.Metadata.AssemblyName = string.Empty;
167-
168-
return plugin;
169160
});
170161
}
171162
}

0 commit comments

Comments
 (0)