From: Patrick Steinhardt Date: Mon, 31 Aug 2026 06:00:15 GMT Subject: Re: [PATCH 02/10] builtin/fsck: merge `fsck_obj_buffer()` and `fsck_obj()` Message-ID: In-Reply-To: On Thu, Aug 27, 2026 at 06:03:08AM -0400, Karthik Nayak wrote: > Patrick Steinhardt writes: > > > The interfaces of the functions `fsck_obj()` and `fsck_obj_buffer()` are > > somewhat similar to one another. The only difference between those two > > is that `fsck_obj()` takes an already-parsed object as input, whereas > > `fsck_obj_buffer()` parses the buffer and then calls `fsck_obj()`. > > > > Furthermore, `fsck_obj()` has no callers other than `fsck_obj_buffer()`. > > > > Refactor the code by merging those two functions. This makes it obvious > > which function does what, and it allows us to get rid of the early in > > s/early/early return/ ? Indeed. Will fix. Patrick