From 2bd7f405c42cc855a38ffc845f49e2c4601929c6 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Mon, 6 Oct 2014 16:06:23 +0200 Subject: [PATCH] Drop useless check: location is unsigned and, thus, always >= 0 Signed-off-by: Sven Strickroth --- src/TortoiseProc/GitLogListBase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TortoiseProc/GitLogListBase.h b/src/TortoiseProc/GitLogListBase.h index 4b0503b36..4bace81b9 100644 --- a/src/TortoiseProc/GitLogListBase.h +++ b/src/TortoiseProc/GitLogListBase.h @@ -97,7 +97,7 @@ public: } // go back and some commit was highlight - if (size > 0 && location >= 0 && location != size - 1) + if (size > 0 && location != size - 1) { // Re-select current one, it may be a forked point. if (hash == lastselected[location]) -- 2.11.4.GIT