From: Ævar Arnfjörð Bjarmason Date: Tue, 07 Dec 2021 11:05:54 GMT Subject: [PATCH v2 4/4] object.h: use BUG(...) no die("BUG: ...") in lookup_object_by_type() Message-ID: In-Reply-To: Adjust code added in 7463064b280 (object.h: add lookup_object_by_type() function, 2021-06-22) to use the BUG() function. Signed-off-by: Junio C Hamano Signed-off-by: Ævar Arnfjörð Bjarmason --- object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/object.c b/object.c index 23a24e678a8..4be82c1e7bc 100644 --- a/object.c +++ b/object.c @@ -199,7 +199,7 @@ struct object *lookup_object_by_type(struct repository *r, case OBJ_BLOB: return (struct object *)lookup_blob(r, oid); default: - die("BUG: unknown object type %d", type); + BUG("unknown object type %d", type); } } -- 2.34.1.898.g5a552c2e5f0