Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
itome committed Apr 11, 2024
1 parent fd86845 commit 0bf1d74
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/redux/thunk/run_new_app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ where

let configuration = store
.select(|state: &State| {
let Some(index) = state.select_launch_configuration_poopup.selected_index else {
return None;
};
let index = state.select_launch_configuration_poopup.selected_index?;
if index >= state.launch_configurations.len() {
return None;
}
Expand All @@ -55,13 +53,10 @@ where
.session_manager
.run_new_app(
device_id.clone(),
configuration.clone().map(|c| c.program.clone()).flatten(),
configuration
.clone()
.map(|c| c.flutter_mode.clone())
.flatten(),
configuration.clone().map(|c| c.cwd.clone()).flatten(),
configuration.clone().map(|c| c.args.clone()).flatten(),
configuration.clone().and_then(|c| c.program.clone()),
configuration.clone().and_then(|c| c.flutter_mode.clone()),
configuration.clone().and_then(|c| c.cwd.clone()),
configuration.clone().and_then(|c| c.args.clone()),
self.use_fvm,
)
.await
Expand Down

0 comments on commit 0bf1d74

Please sign in to comment.