object.c: use BUG(...) no die("BUG: ...") in lookup_object_by_type()
Adjust code added in 7463064b28
(object.h: add
lookup_object_by_type() function, 2021-06-22) to use the BUG()
function.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
a78537a0f2
commit
eafd6e7e55
2
object.c
2
object.c
@ -199,7 +199,7 @@ struct object *lookup_object_by_type(struct repository *r,
|
|||||||
case OBJ_BLOB:
|
case OBJ_BLOB:
|
||||||
return (struct object *)lookup_blob(r, oid);
|
return (struct object *)lookup_blob(r, oid);
|
||||||
default:
|
default:
|
||||||
die("BUG: unknown object type %d", type);
|
BUG("unknown object type %d", type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user