mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Remove extraneous blank lines before block-closing braces
These are useless and distracting. We wouldn't have written the code with them to begin with, so there's no reason to keep them. Author: Justin Pryzby <pryzby@telsasoft.com> Discussion: https://postgr.es/m/20220411020336.GB26620@telsasoft.com Discussion: https://postgr.es/m/attachment/133167/0016-Extraneous-blank-lines.patch
This commit is contained in:
@ -315,7 +315,6 @@ ECPGconnect(int lineno, int c, const char *name, const char *user, const char *p
|
||||
ecpg_free(dbname);
|
||||
dbname = ecpg_strdup(envname, lineno);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (dbname == NULL && connection_name == NULL)
|
||||
|
@ -564,7 +564,6 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
|
||||
}
|
||||
|
||||
pval += size;
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -1392,7 +1392,6 @@ ecpg_build_params(struct statement *stmt)
|
||||
if (sqlda->sqln == desc_counter)
|
||||
desc_counter = 0;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -191,7 +191,6 @@ ECPGtransactionStatus(const char *connection_name)
|
||||
}
|
||||
|
||||
return PQtransactionStatus(con->connection);
|
||||
|
||||
}
|
||||
|
||||
bool
|
||||
|
@ -1740,7 +1740,6 @@ ParseDateTime(char *timestr, char *lowstr,
|
||||
{
|
||||
(*endstr)++;
|
||||
continue;
|
||||
|
||||
}
|
||||
/* otherwise, something is not right... */
|
||||
else
|
||||
|
@ -947,7 +947,6 @@ interval2tm(interval span, struct tm *tm, fsec_t *fsec)
|
||||
{
|
||||
tm->tm_year = span.month / MONTHS_PER_YEAR;
|
||||
tm->tm_mon = span.month % MONTHS_PER_YEAR;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1308,7 +1308,6 @@ PGTYPESnumeric_cmp(numeric *var1, numeric *var2)
|
||||
|
||||
errno = PGTYPES_NUM_BAD_NUMERIC;
|
||||
return INT_MAX;
|
||||
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -863,8 +863,6 @@ PGTYPEStimestamp_add_interval(timestamp * tin, interval * span, timestamp * tout
|
||||
{
|
||||
if (TIMESTAMP_NOT_FINITE(*tin))
|
||||
*tout = *tin;
|
||||
|
||||
|
||||
else
|
||||
{
|
||||
if (span->month != 0)
|
||||
@ -873,7 +871,6 @@ PGTYPEStimestamp_add_interval(timestamp * tin, interval * span, timestamp * tout
|
||||
*tm = &tt;
|
||||
fsec_t fsec;
|
||||
|
||||
|
||||
if (timestamp2tm(*tin, NULL, tm, &fsec, NULL) != 0)
|
||||
return -1;
|
||||
tm->tm_mon += span->month;
|
||||
@ -898,12 +895,11 @@ PGTYPEStimestamp_add_interval(timestamp * tin, interval * span, timestamp * tout
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
*tin += span->time;
|
||||
*tout = *tin;
|
||||
}
|
||||
return 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@ -925,6 +921,5 @@ PGTYPEStimestamp_sub_interval(timestamp * tin, interval * span, timestamp * tout
|
||||
tspan.month = -span->month;
|
||||
tspan.time = -span->time;
|
||||
|
||||
|
||||
return PGTYPEStimestamp_add_interval(tin, &tspan, tout);
|
||||
}
|
||||
|
@ -664,7 +664,6 @@ PQconnectdbParams(const char *const *keywords,
|
||||
(void) connectDBComplete(conn);
|
||||
|
||||
return conn;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1432,7 +1432,6 @@ initialize_SSL(PGconn *conn)
|
||||
}
|
||||
|
||||
SSLerrfree(err);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user