mirror of
https://github.com/postgres/postgres.git
synced 2026-10-23 13:29:09 +03:00
Reindent conditional to improve readability
Found via readability-misleading-indentation warning in clangd. Author: Tristan Partin <tristan@partin.io> Discussion: https://postgr.es/m/DKFO99FP6SLY.2O6A6BUK6P3OQ@partin.io
This commit is contained in:
@@ -808,11 +808,10 @@ DoubleMetaphone(const char *str, Oid collid, char **codes)
|
||||
MetaphAdd(primary, "KN");
|
||||
MetaphAdd(secondary, "N");
|
||||
}
|
||||
else
|
||||
/* not e.g. 'cagney' */
|
||||
if (!StringAt(original, (current + 2), 2, "EY", "")
|
||||
&& (GetAt(original, current + 1) != 'Y')
|
||||
&& !SlavoGermanic(original))
|
||||
/* not e.g. 'cagney' */
|
||||
else if (!StringAt(original, (current + 2), 2, "EY", "")
|
||||
&& (GetAt(original, current + 1) != 'Y')
|
||||
&& !SlavoGermanic(original))
|
||||
{
|
||||
MetaphAdd(primary, "N");
|
||||
MetaphAdd(secondary, "KN");
|
||||
|
||||
Reference in New Issue
Block a user