diff --git a/src/api/bundle_overrides.rs b/src/api/bundle_overrides.rs index 8544587..936d8d0 100644 --- a/src/api/bundle_overrides.rs +++ b/src/api/bundle_overrides.rs @@ -366,14 +366,13 @@ impl Command { let api = Api::from(global_options); - match api + if let Some(response) = api .bundle_overrides() .remove_device(params) .await .context(ApiSnafu)? { - Some(response) => print_json!(&response), - None => panic!(), + print_json!(&response) } Ok(())