Fix braces in if-else statements
From the Linux kernel coding guidelines:
Do not unnecessarily use braces where a single statement will do.
[...] This does not apply if one branch of a conditional statement
is a single statement. Use braces in both branches.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
@@ -175,9 +175,9 @@ void wins_set_layout(int nb)
|
||||
/* Get the current side bar width. */
|
||||
unsigned wins_sbar_width(void)
|
||||
{
|
||||
if (sbarwidth_perc > SBARMAXWIDTHPERC)
|
||||
if (sbarwidth_perc > SBARMAXWIDTHPERC) {
|
||||
return col * SBARMAXWIDTHPERC / 100;
|
||||
else {
|
||||
} else {
|
||||
unsigned sbarwidth = (unsigned)(col * sbarwidth_perc / 100);
|
||||
return (sbarwidth < SBARMINWIDTH) ? SBARMINWIDTH : sbarwidth;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user