From efe6d743cf10ffa2143c58a2e1eb58202616c305 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 24 Jul 2024 19:07:31 +0800 Subject: [PATCH] enhance: allow to compile with dotnet 8.0.106 (#281) --- src/Commands/QueryTrackStatus.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/QueryTrackStatus.cs b/src/Commands/QueryTrackStatus.cs index abd5d5f4..0bf9746f 100644 --- a/src/Commands/QueryTrackStatus.cs +++ b/src/Commands/QueryTrackStatus.cs @@ -19,7 +19,7 @@ namespace SourceGit.Commands if (!rs.IsSuccess) return status; - var lines = rs.StdOut.Split(['\n', '\r'], StringSplitOptions.RemoveEmptyEntries); + var lines = rs.StdOut.Split(new char[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries); foreach (var line in lines) { if (line[0] == '>')