Re: [PATCH] checkout_entry(): remove unreachable error() call
- From
Jeff King <peff@peff.net>
- Date
- Aug 18, 2020, 18:34 UTC
- Message-ID
- <20200818183416.GA2479537@coredump.intra.peff.net>
- In-Reply-To
- <a170ee42e6d642d380e6b761e8889b05e452414a.1597772501.git.matheus.bernardino@usp.br>
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