mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-18 00:45:00 +00:00
refactor: use String.AsSpan(int, int)
instead of String.AsSpan().Slice(int, int)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
48bb8e91de
commit
825b74c2a3
12 changed files with 20 additions and 20 deletions
|
@ -23,7 +23,7 @@ namespace SourceGit.Models
|
|||
get
|
||||
{
|
||||
if (IsDetached)
|
||||
return $"deteched HEAD at {Head.AsSpan().Slice(10)}";
|
||||
return $"deteched HEAD at {Head.AsSpan(10)}";
|
||||
|
||||
if (Branch.StartsWith("refs/heads/", StringComparison.Ordinal))
|
||||
return Branch.Substring(11);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue