diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>
committerJason A. Donenfeld <Jason@zx2c4.com>
commit
parent
tree
download
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>
-rw-r--r--ui-refs.c2
1 file changed, 1 insertion, 1 deletion
diff --git a/ui-refs.c b/ui-refs.c
index be3572c..295a4c7 100644
--- 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;
}