Re: Improve readability of if-statement in dmetaphone.c

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Tristan Partin <tristan(at)partin(dot)io>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Improve readability of if-statement in dmetaphone.c
Date: 2026-08-04 07:19:36
Message-ID: 0F28E35D-B764-4147-B76B-0CDA4CA352B5@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 4 Aug 2026, at 00:45, Tristan Partin <tristan(at)partin(dot)io> wrote:
>
> clangd was warning on the indentation of the else-if statement with
> a readability-misleading-indentation. I'll agree with clangd in this
> instance. I had to stare at the block for a moment to understand what it
> was doing. Figured I would throw the patch up in the event some
> committer agreed.

That is indeed a much better way to format the conditional, will fix.

--
Daniel Gustafsson

In response to

Browse pgsql-hackers by date

  From Date Subject
Previous Message Xuneng Zhou 2026-08-04 07:16:36 Re: Add a pg_wal_preallocate() SQL function to eagerly create future WAL segments