Skip to content

Commit

Permalink
Use Implicitly Typed Variables
Browse files Browse the repository at this point in the history
  • Loading branch information
kruplm committed Jun 30, 2023
1 parent e467a3e commit 42d330e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shell/dotnet/Shell/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ public string ReadPreloadResource(string name)
var assembly = Assembly.GetExecutingAssembly();
string resourcePath = $$"""Shell.Preload.{{name}}""";

using (Stream stream = assembly.GetManifestResourceStream(resourcePath))
using (StreamReader reader = new StreamReader(stream))
using (var stream = assembly.GetManifestResourceStream(resourcePath))
using (var reader = new StreamReader(stream))
{
return reader.ReadToEnd();
}
Expand Down

0 comments on commit 42d330e

Please sign in to comment.