╭ changed ─────────────╮ │src/event/PatchRev.zig│ ╰──────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────╮ │217 } │ │218 │ │219 pub fn validateOid(comptime hash_kind: hash.HashKind, oid: []const u8) !void { │ │220 + if (oid.len != hash.hexLen(hash_kind)) return error.InvalidOid; │ │221 var bytes: [hash.byteLen(hash_kind)]u8 = undefined; │ │222 _ = try std.fmt.hexToBytes(&bytes, oid); │ │223 if (!std.mem.eql(u8, oid, &std.fmt.bytesToHex(bytes, .lower))) return error.InvalidOid;│ ╰────────────────────────────────────────────────────────────────────────────────────────────────╯