diff --git a/git.zig b/git.zig index a7c5054bc7d8f33d1362fd58f26786a9bb80c4ac..6a181b9d76b785b5647d0035aa2a7a8d02211fd7 100644 --- a/git.zig +++ b/git.zig @@ -998,10 +998,8 @@ pub const Repository = struct { const _type = base_obj.type; const content = try list2.toOwnedSlice(r.gpa); const obj: GitObject = .{ .type = _type, .content = content }; - if (maybe_oid) |oid| - try r.unpacked_loose_objects.put(r.gpa, oid, obj) - else - try r.unpacked_objects.put(r.gpa, key, obj); + _ = maybe_oid; + try r.unpacked_objects.put(r.gpa, key, obj); return obj; }