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:
@@ -313,8 +313,9 @@ int utf8_width(char *s)
|
||||
return utf8_widthtab[cur].width;
|
||||
else
|
||||
low = cur + 1;
|
||||
} else
|
||||
} else {
|
||||
high = cur - 1;
|
||||
}
|
||||
}
|
||||
while (low <= high);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user