From aa1c8b1cc1fe5a5ed7d4db9925e39406de51630b Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 10 Jun 2025 17:09:57 +0800 Subject: [PATCH] code_style: use combined expr Signed-off-by: leo --- src/ViewModels/Histories.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ViewModels/Histories.cs b/src/ViewModels/Histories.cs index 43f060d7..448e3f10 100644 --- a/src/ViewModels/Histories.cs +++ b/src/ViewModels/Histories.cs @@ -237,9 +237,9 @@ namespace SourceGit.ViewModels 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 `Create and Fast-Forward` popup. + // its upstream, show `Checkout and Fast-Forward` popup. 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 }) { if (_repo.CanCreatePopup()) _repo.ShowPopup(new CheckoutAndFastForward(_repo, localBranch, remoteBranch));