the repository which powers this website
ui-refs: remove useless null check
There is no way that "tag" can be null here. Coverity-id: 13950 Signed-off-by: John Keeping <[email protected]>
John Keeping 2015-10-09
parent 509488d · commit 198a440
-rw-r--r--ui-refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-refs.c b/ui-refs.c
index be3572ca..295a4c7b 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;
}