Skip to content

Commit 95b4c4c

Browse files
committed
Improve code quality
1 parent ad02700 commit 95b4c4c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Plugins/Flow.Launcher.Plugin.PluginsManager/Utilities.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ internal static UserPlugin GetPluginInfoFromZip(string filePath)
7171

7272
if (pluginJsonEntry != null)
7373
{
74-
using StreamReader reader = new StreamReader(pluginJsonEntry.Open());
75-
string pluginJsonContent = reader.ReadToEnd();
76-
plugin = JsonSerializer.Deserialize<UserPlugin>(pluginJsonContent);
74+
using Stream stream = pluginJsonEntry.Open();
75+
plugin = JsonSerializer.Deserialize<UserPlugin>(stream);
7776
plugin.IcoPath = "Images\\zipfolder.png";
7877
}
7978
}

0 commit comments

Comments
 (0)