mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-12 02:48:28 -04:00
AP_Mission: remove pointless else clauses
This commit is contained in:
parent
f65e37663a
commit
5cc4015144
@ -300,16 +300,14 @@ bool AP_Mission::get_next_nav_cmd(uint16_t start_index, Mission_Command& cmd)
|
||||
if (!get_next_cmd(cmd_index, cmd, false)) {
|
||||
// no more commands so return failure
|
||||
return false;
|
||||
}else{
|
||||
}
|
||||
// if found a "navigation" command then return it
|
||||
if (is_nav_cmd(cmd)) {
|
||||
return true;
|
||||
}else{
|
||||
}
|
||||
// move on in list
|
||||
cmd_index++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// if we got this far we did not find a navigation command
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user