commit d5a6a0f390343f68393d08e55305180b9d81e68b from: Omar Polo via: Thomas Adam date: Sat Sep 03 23:12:56 2022 UTC gotwebd: drop superfluous check commit_id is not NULL if got_repo_match_object_id returned successfully. ok stsp@ commit - 7a800a02c49f1b97dfd6344a10df6e741894de56 commit + d5a6a0f390343f68393d08e55305180b9d81e68b blob - 5d1a7898fc6d2054c70b36f3156ae2eb76c29e31 blob + d27a4182d938fd1710ad3b056c9206ed55584811 --- gotwebd/got_operations.c +++ gotwebd/got_operations.c @@ -1228,11 +1228,6 @@ got_output_file_blame(struct request *c) if (error) goto done; - if (commit_id == NULL) { - error = got_error(GOT_ERR_NO_OBJ); - goto done; - } - error = got_object_get_type(&obj_type, repo, obj_id); if (error) goto done;