diff --git a/src/Runner.Worker/Dap/DapReplExecutor.cs b/src/Runner.Worker/Dap/DapReplExecutor.cs index fa432a8f6..2a8e63424 100644 --- a/src/Runner.Worker/Dap/DapReplExecutor.cs +++ b/src/Runner.Worker/Dap/DapReplExecutor.cs @@ -100,7 +100,7 @@ namespace GitHub.Runner.Worker.Dap _hostContext.GetDirectory(WellKnownDirectory.Temp), $"dap_repl_{Guid.NewGuid()}{extension}"); - var encoding = new UTF8Encoding(false); + Encoding encoding = new UTF8Encoding(false); #if OS_WINDOWS contents = contents.Replace("\r\n", "\n").Replace("\n", "\r\n"); encoding = Console.InputEncoding.CodePage != 65001