1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-15 01:04:37 +02:00

Remove too-verbose braces in switch statements.

The original intention was to enclose complex code in braces but somehow braces got propagated almost everywhere.

Document the standard for braces in switch statements and update the code to reflect the standard.
This commit is contained in:
David Steele
2021-01-26 12:10:24 -05:00
parent f669da7dcc
commit 456a300bb7
27 changed files with 50 additions and 347 deletions

View File

@ -117,10 +117,8 @@ testBackupValidateCallback(void *callbackData, const StorageInfo *info)
}
case storageTypeLink:
{
strCatFmt(data->content, "link, d=%s", strZ(info->linkDestination));
break;
}
case storageTypePath:
{
@ -145,10 +143,7 @@ testBackupValidateCallback(void *callbackData, const StorageInfo *info)
}
case storageTypeSpecial:
{
THROW_FMT(AssertError, "unexpected special file '%s'", strZ(info->name));
break;
}
}
strCatZ(data->content, "}\n");