Skip to content

Commit 9a15ff5

Browse files
committed
enhance: remove code not needed to improve performance
1 parent f0649c9 commit 9a15ff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/CommitGraph.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public static CommitGraph Parse(List<Commit> commits, HashSet<string> canPushCom
149149
var oldCount = unsolved.Count;
150150

151151
commit.CanPushToUpstream = canPushCommits.Remove(commit.SHA);
152-
commit.CanPullFromUpstream = !commit.CanPushToUpstream && canPullCommits.Remove(commit.SHA);
152+
commit.CanPullFromUpstream = canPullCommits.Remove(commit.SHA);
153153

154154
// Update current y offset
155155
offsetY += UNIT_HEIGHT;

0 commit comments

Comments
 (0)