neocgit

a more 'modern' version of cgit
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/neocgit

commit 198a4404b937033cf2cf2b054242df4e81ef3075
parent 509488d85c06c66eb65bc4809f6e317c1ebe1d7a
Author: John Keeping <john@keeping.me.uk>
Date:   Thu,  8 Oct 2015 23:23:59 +0100

ui-refs: remove useless null check

There is no way that "tag" can be null here.

Coverity-id: 13950
Signed-off-by: John Keeping <john@keeping.me.uk>

Diffstat:
Mui-refs.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui-refs.c b/ui-refs.c @@ -135,7 +135,7 @@ static int print_tag(struct refinfo *ref) tag = (struct tag *)obj; obj = tag->tagged; info = ref->tag; - if (!tag || !info) + if (!info) return 1; }