You've already forked pgbackrest
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:
@ -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");
|
||||
|
Reference in New Issue
Block a user