Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lxd: Remove useless
break
statement in main_callhook command
In a select statement, only one case is executed when a channel operation succeeds so once a case is selected and its associated code block is executed, the select statement automatically terminates (there's no fall-through behavior like in a switch statement). So when the response case is selected (i.e., a value is received from the channel), the code inside that case is executed, and then the select statement naturally completes. The break statement here doesn't break out of any additional loop or switch statement; it's just breaking out of the select, which would happen anyway. Signed-off-by: Gabriel Mougard <[email protected]>
- Loading branch information