1
0
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:
Sébastien Helleu
2014-08-09 17:43:45 +02:00
parent 795b9c9da9
commit 9358f076a3
+4 -3
View File
@@ -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;