Skip to content

Commit e3df357

Browse files
committed
In pg_upgrade, clean up code layout in validateDirectoryOption().
1 parent 10db3de commit e3df357

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

contrib/pg_upgrade/option.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,21 +288,19 @@ or\n"), old_cluster.port, new_cluster.port, os_info.user);
288288
* user hasn't provided the required directory name.
289289
*/
290290
static void
291-
validateDirectoryOption(char **dirpath,
292-
char *envVarName, char *cmdLineOption, char *description)
291+
validateDirectoryOption(char **dirpath, char *envVarName,
292+
char *cmdLineOption, char *description)
293293
{
294-
if (*dirpath == NULL || (strlen(*dirpath) == 0))
294+
if (*dirpath == NULL || strlen(*dirpath) == 0)
295295
{
296296
const char *envVar;
297297

298298
if ((envVar = getenv(envVarName)) && strlen(envVar))
299299
*dirpath = pg_strdup(envVar);
300300
else
301-
{
302301
pg_log(PG_FATAL, "You must identify the directory where the %s\n"
303302
"Please use the %s command-line option or the %s environment variable\n",
304303
description, cmdLineOption, envVarName);
305-
}
306304
}
307305

308306
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy