File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
Flow.Launcher.Core/Plugin Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Collections . Generic ;
3
- using System . IO ;
4
3
using System . Linq ;
5
4
using System . Reflection ;
6
5
using System . Threading . Tasks ;
@@ -139,15 +138,11 @@ public static IEnumerable<PluginPair> ExecutablePlugins(IEnumerable<PluginMetada
139
138
. Where ( o => o . Language . Equals ( AllowedLanguage . Executable , StringComparison . OrdinalIgnoreCase ) )
140
139
. Select ( metadata =>
141
140
{
142
- var plugin = new PluginPair
141
+ return new PluginPair
143
142
{
144
143
Plugin = new ExecutablePlugin ( metadata . ExecuteFilePath ) ,
145
144
Metadata = metadata
146
145
} ;
147
-
148
- plugin . Metadata . AssemblyName = string . Empty ;
149
-
150
- return plugin ;
151
146
} ) ;
152
147
}
153
148
@@ -157,15 +152,11 @@ public static IEnumerable<PluginPair> ExecutableV2Plugins(IEnumerable<PluginMeta
157
152
. Where ( o => o . Language . Equals ( AllowedLanguage . ExecutableV2 , StringComparison . OrdinalIgnoreCase ) )
158
153
. Select ( metadata =>
159
154
{
160
- var plugin = new PluginPair
155
+ return new PluginPair
161
156
{
162
157
Plugin = new ExecutablePlugin ( metadata . ExecuteFilePath ) ,
163
158
Metadata = metadata
164
159
} ;
165
-
166
- plugin . Metadata . AssemblyName = string . Empty ;
167
-
168
- return plugin ;
169
160
} ) ;
170
161
}
171
162
}
You can’t perform that action at this time.
0 commit comments