Re: [PATCH v2 02/22] git: fix leaking system paths
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 13, 2024, 16:02 UTC
- Message-ID
- <xmqqh6bo8l73.fsf@gitster.g>
- In-Reply-To
- <Zrr9oxgg3w8JyUpw@tanuki>
Patrick Steinhardt <ps@pks.im> writes:
>> Makes sense, though I wonder if this would be slightly cleaner to write >> like so (applies on top of this patch): > > It is cleaner indeed, thanks for the proposal!
Yup, it is only 3 repetitions but they are repetitions nevertheless. A small helper function that gets rid of them is worth it.
Thanks.