Skip to content

Commit

Permalink
ui: Remove not strictly necessary continues.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid committed Jan 12, 2025
1 parent 45a3b79 commit 31808e9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions all-is-cubes-ui/src/apps/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ impl<I: time::Instant> Session<I> {
}

fn process_control_messages_and_stuff(&mut self) {
'handle_message: loop {
loop {
match self.control_channel.try_recv() {
Ok(msg) => match msg {
ControlMessage::Back => {
Expand Down Expand Up @@ -474,13 +474,11 @@ impl<I: time::Instant> Session<I> {
"{}",
all_is_cubes::util::ErrorChain(&*e)
));
continue 'handle_message;
}
None => {
self.show_modal_message(
"unsupported: saving did not complete synchronously".into(),
);
continue 'handle_message;
}
}
}
Expand Down

0 comments on commit 31808e9

Please sign in to comment.