Commit 596de3980450cf45f184c8d2efa1f98d424210fd

Stefan Sperling 2018-05-20T15:09:16

remove redundant check in scroll_down()

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/tog/tog.c b/tog/tog.c
index 578958a..ae7b25a 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -505,9 +505,6 @@ scroll_down(struct commit_queue_entry **first_displayed_entry, int maxscroll,
 	struct commit_queue_entry *pentry;
 	int nscrolled = 0;
 
-	if (last_displayed_entry->commit->nparents == 0)
-		return NULL;
-
 	do {
 		pentry = TAILQ_NEXT(last_displayed_entry, entry);
 		if (pentry == NULL) {