From 546df5f1730eba774229e98d53c5145c4c1c1b84 Mon Sep 17 00:00:00 2001 From: Lee Reinhardt Date: Fri, 6 Mar 2026 23:44:38 -0700 Subject: [PATCH] fix `bundle-overrides devices remove` panic on successful 204 response The server returns HTTP 204 No Content for successful device removal, which the SDK deserializes as None. The None arm incorrectly called panic!() instead of treating it as success. --- src/api/bundle_overrides.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(())