Skip to content

Commit f7bf681

Browse files
committed
Replace using block with a using declaration in SingleInstance.cs
1 parent 950b4c9 commit f7bf681

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Flow.Launcher/Helper/SingleInstance.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,8 @@ private static IList<string> GetCommandLineArgs( string uniqueApplicationName )
293293
{
294294
try
295295
{
296-
using (TextReader reader = new StreamReader(cmdLinePath, Encoding.Unicode))
297-
{
298-
args = NativeMethods.CommandLineToArgvW(reader.ReadToEnd());
299-
}
296+
using TextReader reader = new StreamReader(cmdLinePath, Encoding.Unicode);
297+
args = NativeMethods.CommandLineToArgvW(reader.ReadToEnd());
300298

301299
File.Delete(cmdLinePath);
302300
}

0 commit comments

Comments
 (0)