Remove redundant condition

GitHub #655.
This commit is contained in:
houzj.fnst
2020-07-13 18:41:58 +08:00
committed by Ian Barwick
parent 147f454d32
commit 3ffeffbd8b

View File

@@ -760,8 +760,7 @@ parse_conninfo_string(const char *conninfo_str, t_conninfo_param_list *param_lis
for (option = connOptions; option && option->keyword; option++)
{
/* Ignore non-set or blank parameter values */
if ((option->val == NULL) ||
(option->val != NULL && option->val[0] == '\0'))
if (option->val == NULL || option->val[0] == '\0')
continue;
/* Ignore settings specific to the upstream node */
@@ -806,8 +805,7 @@ conn_to_param_list(PGconn *conn, t_conninfo_param_list *param_list)
for (option = connOptions; option && option->keyword; option++)
{
/* Ignore non-set or blank parameter values */
if ((option->val == NULL) ||
(option->val != NULL && option->val[0] == '\0'))
if (option->val == NULL || option->val[0] == '\0')
continue;
/* Ignore "password" */