From: Jeff King Date: Tue, 18 Aug 2020 18:34:16 GMT Subject: Re: [PATCH] checkout_entry(): remove unreachable error() call Message-ID: <20200818183416.GA2479537@coredump.intra.peff.net> In-Reply-To: On Tue, Aug 18, 2020 at 02:46:55PM -0300, Matheus Tavares wrote: > This if statement never evaluates to true since we already check > state->force a few lines above, and immediately return when it is > false. Yep. Looks like this was unreachable even when it was added back in d48a72f337 (Fix replacing of a directory with a file/symlink in git-checkout-cache, 2005-07-14). -Peff