Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite3df357

Browse files
committed
In pg_upgrade, clean up code layout in validateDirectoryOption().
1 parent10db3de commite3df357

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
staticvoid
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
constchar*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)

[8]ページ先頭

©2009-2025 Movatter.jp