Skip to content

Commit eafd6e7

Browse files
avargitster
authored andcommitted
object.c: use BUG(...) no die("BUG: ...") in lookup_object_by_type()
Adjust code added in 7463064 (object.h: add lookup_object_by_type() function, 2021-06-22) to use the BUG() function. Signed-off-by: Junio C Hamano <[email protected]> Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a78537a commit eafd6e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ struct object *lookup_object_by_type(struct repository *r,
199199
case OBJ_BLOB:
200200
return (struct object *)lookup_blob(r, oid);
201201
default:
202-
die("BUG: unknown object type %d", type);
202+
BUG("unknown object type %d", type);
203203
}
204204
}
205205

0 commit comments

Comments
 (0)