Skip to content

Commit 104b4b2

Browse files
committed
Improve code quality
1 parent c5dd19e commit 104b4b2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Flow.Launcher/Helper/PluginInstallationHelper.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ public static async Task InstallPluginAndCheckRestartAsync(string filePath)
9898
try
9999
{
100100
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()) ??
101+
var pluginJsonEntry = archive.Entries.FirstOrDefault(x => x.Name == "plugin.json") ??
104102
throw new FileNotFoundException("The zip file does not contain a plugin.json file.");
105103

106104
using Stream stream = pluginJsonEntry.Open();

0 commit comments

Comments
 (0)