all repos — cgit @ 198a4404b937033cf2cf2b054242df4e81ef3075

a hyperfast web frontend for git written in c

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>
John Keeping john@keeping.me.uk
Thu, 08 Oct 2015 23:23:59 +0100
commit

198a4404b937033cf2cf2b054242df4e81ef3075

parent

509488d85c06c66eb65bc4809f6e317c1ebe1d7a

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M ui-refs.cui-refs.c

@@ -135,7 +135,7 @@ if (obj->type == OBJ_TAG) {

tag = (struct tag *)obj; obj = tag->tagged; info = ref->tag; - if (!tag || !info) + if (!info) return 1; }