commit e4213243b6508845e530a1aadef9fe28d49a1ff2 from: Omar Polo date: Sat Sep 03 09:43:03 2022 UTC gotwebd: drop superfluous check commit_id is not NULL if got_repo_match_object_id returned successfully. ok stsp@ commit - e72b098390333cd6d10b39518001fba7ba6a1790 commit + e4213243b6508845e530a1aadef9fe28d49a1ff2 blob - 14d7cbf7261ca9171a51aa4286a2d0870ffcf937 blob + 3fdee51058625f396f08e673e79e87ba2d0843db --- 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;