Re: [PATCH 4/4] get_oid(): when an object was not found, try harder
- From
Jeff King <peff@peff.net>
- Date
- Mar 14, 2019, 18:57 UTC
- Message-ID
- <20190314185758.GB26250@sigill.intra.peff.net>
- In-Reply-To
- <nycvar.QRO.7.76.6.1903141410360.41@tvgsbejvaqbjf.bet>
On Thu, Mar 14, 2019 at 02:17:18PM +0100, Johannes Schindelin wrote:
> > 2. is there a way to cleanly avoid the three-line duplicate? > [...] > Peff tried with a function, but I think that this would actually be a > really appropriate occasion for a well-placed `goto`:
I worried that a goto would be too confusing/ugly. But I am OK with it if you are.
-Peff