From f7bf681ee2146c19ef25ec319c455dc44462dec0 Mon Sep 17 00:00:00 2001 From: Yusyuriv Date: Thu, 11 Apr 2024 13:54:50 +0600 Subject: [PATCH] Replace `using` block with a `using` declaration in `SingleInstance.cs` --- Flow.Launcher/Helper/SingleInstance.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Flow.Launcher/Helper/SingleInstance.cs b/Flow.Launcher/Helper/SingleInstance.cs index 380da1647..8e72e4266 100644 --- a/Flow.Launcher/Helper/SingleInstance.cs +++ b/Flow.Launcher/Helper/SingleInstance.cs @@ -293,10 +293,8 @@ public static class SingleInstance { try { - using (TextReader reader = new StreamReader(cmdLinePath, Encoding.Unicode)) - { - args = NativeMethods.CommandLineToArgvW(reader.ReadToEnd()); - } + using TextReader reader = new StreamReader(cmdLinePath, Encoding.Unicode); + args = NativeMethods.CommandLineToArgvW(reader.ReadToEnd()); File.Delete(cmdLinePath); }