Re: [PATCH v3 11/23] log_ref_setup(): separate code for create vs non-create
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 1, 2017, 03:28 UTC
- Message-ID
- <xmqqful34fww.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <d9f96df1bb2d5b9a95388da04b770ea9f317c491.1483153436.git.mhagger@alum.mit.edu>
Michael Haggerty <mhagger@alum.mit.edu> writes:
Show 8 quoted lines
> + if (errno == ENOENT || errno == EISDIR) {
> + /*
> + * The logfile doesn't already exist,
> + * but that is not an error; it only
> + * means that we won't write log
> + * entries to it.
> + */
> + } else {It may be valid C, but an
{
/*
* an empty block without any statement,
* not even a null statement.
*/
}always makes me a bit nervous. Have a line with a semicolon without anything else (other than the indent) at the end and it will read nicer, at least to me.