We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5dd19e commit 104b4b2Copy full SHA for 104b4b2
Flow.Launcher/Helper/PluginInstallationHelper.cs
@@ -98,9 +98,7 @@ public static async Task InstallPluginAndCheckRestartAsync(string filePath)
98
try
99
{
100
using ZipArchive archive = ZipFile.OpenRead(filePath);
101
- var pluginJsonPath = archive.Entries.FirstOrDefault(x => x.Name == "plugin.json") ??
102
- throw new FileNotFoundException("The zip file does not contain a plugin.json file.");
103
- var pluginJsonEntry = archive.GetEntry(pluginJsonPath.ToString()) ??
+ var pluginJsonEntry = archive.Entries.FirstOrDefault(x => x.Name == "plugin.json") ??
104
throw new FileNotFoundException("The zip file does not contain a plugin.json file.");
105
106
using Stream stream = pluginJsonEntry.Open();
0 commit comments