From 9a15ff59d4186111622fa496015d864818781ea6 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 19 Jul 2024 09:47:41 +0800 Subject: [PATCH] enhance: remove code not needed to improve performance --- src/Models/CommitGraph.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/CommitGraph.cs b/src/Models/CommitGraph.cs index 707bacc2..c5c66482 100644 --- a/src/Models/CommitGraph.cs +++ b/src/Models/CommitGraph.cs @@ -149,7 +149,7 @@ namespace SourceGit.Models var oldCount = unsolved.Count; commit.CanPushToUpstream = canPushCommits.Remove(commit.SHA); - commit.CanPullFromUpstream = !commit.CanPushToUpstream && canPullCommits.Remove(commit.SHA); + commit.CanPullFromUpstream = canPullCommits.Remove(commit.SHA); // Update current y offset offsetY += UNIT_HEIGHT;