Skip to content

Commit

Permalink
Improve code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack251970 committed Jan 10, 2025
1 parent ad02700 commit 95b4c4c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Plugins/Flow.Launcher.Plugin.PluginsManager/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ internal static UserPlugin GetPluginInfoFromZip(string filePath)

if (pluginJsonEntry != null)
{
using StreamReader reader = new StreamReader(pluginJsonEntry.Open());
string pluginJsonContent = reader.ReadToEnd();
plugin = JsonSerializer.Deserialize<UserPlugin>(pluginJsonContent);
using Stream stream = pluginJsonEntry.Open();
plugin = JsonSerializer.Deserialize<UserPlugin>(stream);
plugin.IcoPath = "Images\\zipfolder.png";
}
}
Expand Down

0 comments on commit 95b4c4c

Please sign in to comment.