Commit Diff


commit - 8f214b627d8d732248d5ae12b5c1de0c3ba3c6a7
commit + 97a19438305ebc4e0078852274b23dfe1c8f615d
blob - 866c545e0c71a0fbc9ed80524c4b3f676cdd2dd8
blob + a884509db57de5c20cf22115f57a49b33ce57b75
--- gotweb/gotweb.c
+++ gotweb/gotweb.c
@@ -3986,11 +3986,6 @@ gw_output_repo_heads(struct gw_trans *gw_trans)
 			continue;
 
 		refname = got_ref_get_name(re->ref);
-		if (refname == NULL) {
-			error = got_error_from_errno("got_ref_to_str");
-			goto done;
-		}
-
 		if (strncmp(refname, "refs/heads/", 11) != 0)
 			continue;