X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=tag.c;h=28641cf85a0d32357269129f0e8b92bb9e21f399;hb=9904fadfea002edf2ef22e8ec9a978e45d1f540b;hp=85607c219e25d63b0d1f3344649104c60f5b96e2;hpb=356169c1f66287629ea08e8c9c6e27b00ff8707a;p=git.git diff --git a/tag.c b/tag.c index 85607c219..28641cf85 100644 --- a/tag.c +++ b/tag.c @@ -28,12 +28,12 @@ struct tag *lookup_tag(const unsigned char *sha1) return create_object(sha1, OBJ_TAG, alloc_tag_node()); if (!obj->type) obj->type = OBJ_TAG; - if (obj->type != OBJ_TAG) { - error("Object %s is a %s, not a tag", - sha1_to_hex(sha1), typename(obj->type)); - return NULL; - } - return (struct tag *) obj; + if (obj->type != OBJ_TAG) { + error("Object %s is a %s, not a tag", + sha1_to_hex(sha1), typename(obj->type)); + return NULL; + } + return (struct tag *) obj; } static unsigned long parse_tag_date(const char *buf, const char *tail)