mirror of
https://github.com/postgres/postgres.git
synced 2026-06-10 01:00:11 -04:00
formatting.c cleanup: Remove unnecessary extra parentheses
Reviewed-by: Chao Li <li.evan.chao@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/6dd9d208-a3ed-49b5-b03d-8617261da973%40eisentraut.org
This commit is contained in:
parent
6271d9922e
commit
2724830929
1 changed files with 2 additions and 2 deletions
|
|
@ -1200,7 +1200,7 @@ NUMDesc_prepare(NUMDesc *num, FormatNode *n)
|
|||
break;
|
||||
|
||||
case NUM_B:
|
||||
if (num->pre == 0 && num->post == 0 && (!IS_ZERO(num)))
|
||||
if (num->pre == 0 && num->post == 0 && !IS_ZERO(num))
|
||||
num->flag |= NUM_F_BLANK;
|
||||
break;
|
||||
|
||||
|
|
@ -1541,7 +1541,7 @@ get_th(const char *num, int type)
|
|||
* All "teens" (<x>1[0-9]) get 'TH/th', while <x>[02-9][123] still get
|
||||
* 'ST/st', 'ND/nd', 'RD/rd', respectively
|
||||
*/
|
||||
if ((len > 1) && (num[len - 2] == '1'))
|
||||
if (len > 1 && num[len - 2] == '1')
|
||||
last = 0;
|
||||
|
||||
switch (last)
|
||||
|
|
|
|||
Loading…
Reference in a new issue