code_style: remove comment
Some checks failed
Continuous Integration / Prepare version string (push) Waiting to run
Continuous Integration / Build (push) Waiting to run
Continuous Integration / Package (push) Blocked by required conditions
Localization Check / localization-check (push) Has been cancelled

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-06-10 17:19:37 +08:00
parent aa1c8b1cc1
commit bcefb773c1
No known key found for this signature in database

View file

@ -236,8 +236,6 @@ namespace SourceGit.ViewModels
var remoteBranch = _repo.Branches.Find(x => x.FriendlyName == d.Name); var remoteBranch = _repo.Branches.Find(x => x.FriendlyName == d.Name);
if (remoteBranch != null) if (remoteBranch != null)
{ {
// If there's a local branch that is tracking on this remote branch and it does not ahead of
// its upstream, show `Checkout and Fast-Forward` popup.
var localBranch = _repo.Branches.Find(x => x.IsLocal && x.Upstream == remoteBranch.FullName); var localBranch = _repo.Branches.Find(x => x.IsLocal && x.Upstream == remoteBranch.FullName);
if (localBranch is { TrackStatus.Ahead.Count: 0 }) if (localBranch is { TrackStatus.Ahead.Count: 0 })
{ {
@ -248,9 +246,7 @@ namespace SourceGit.ViewModels
} }
if (firstRemoteBranch == null) if (firstRemoteBranch == null)
{
firstRemoteBranch = remoteBranch; firstRemoteBranch = remoteBranch;
}
} }
} }