mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 10:13:12 +02:00
exec: invert a condition to make code more readable
This commit is contained in:
@@ -135,10 +135,11 @@ exec_add ()
|
||||
|
||||
new_exec_cmd->prev_cmd = last_exec_cmd;
|
||||
new_exec_cmd->next_cmd = NULL;
|
||||
if (!exec_cmds)
|
||||
exec_cmds = new_exec_cmd;
|
||||
else
|
||||
if (exec_cmds)
|
||||
last_exec_cmd->next_cmd = new_exec_cmd;
|
||||
else
|
||||
exec_cmds = new_exec_cmd;
|
||||
|
||||
last_exec_cmd = new_exec_cmd;
|
||||
|
||||
new_exec_cmd->number = number;
|
||||
|
||||
Reference in New Issue
Block a user