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:
@@ -94,9 +94,9 @@ void edit_note(char **note, const char *editor)
|
||||
|
||||
wins_launch_external(tmppath, editor);
|
||||
|
||||
if (io_file_is_empty(tmppath) > 0)
|
||||
if (io_file_is_empty(tmppath) > 0) {
|
||||
erase_note(note);
|
||||
else if ((fp = fopen(tmppath, "r"))) {
|
||||
} else if ((fp = fopen(tmppath, "r"))) {
|
||||
sha1_stream(fp, sha1);
|
||||
fclose(fp);
|
||||
*note = sha1;
|
||||
|
||||
Reference in New Issue
Block a user