made while/until loop condition check more readable
This commit is contained in:
parent
2aa1646307
commit
b5c5144ab1
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ grub_script_execute_cmdwhile (struct grub_script_cmd *cmd)
|
|||
result = 0;
|
||||
do {
|
||||
cond = grub_script_execute_cmd (cmdwhile->cond);
|
||||
if ((cmdwhile->until && !cond) || (!cmdwhile->until && cond))
|
||||
if (cmdwhile->until ? !cond : cond)
|
||||
break;
|
||||
|
||||
result = grub_script_execute_cmd (cmdwhile->list);
|
||||
|
|
Loading…
Reference in a new issue