From 9bfe4f222e5661a9c860684fa3c12e8e5ba22f78 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Thu, 25 Feb 2016 00:06:04 +0100 Subject: [PATCH] Simplify --- zathura/jumplist.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/zathura/jumplist.c b/zathura/jumplist.c index f1bb531..5fd783f 100644 --- a/zathura/jumplist.c +++ b/zathura/jumplist.c @@ -53,11 +53,7 @@ zathura_jumplist_reset_current(zathura_t* zathura) { g_return_if_fail(zathura != NULL && zathura->jumplist.cur != NULL); - while (true) { - if (girara_list_iterator_has_next(zathura->jumplist.cur) == false) { - return; - } - + while (girara_list_iterator_has_next(zathura->jumplist.cur) == true) { girara_list_iterator_next(zathura->jumplist.cur); } }