Skip to content

fix bundle-overrides devices remove panic on successful 204 response#236

Merged
lee-reinhardt merged 1 commit into
mainfrom
lee-eng-1472
Mar 23, 2026
Merged

fix bundle-overrides devices remove panic on successful 204 response#236
lee-reinhardt merged 1 commit into
mainfrom
lee-eng-1472

Conversation

@lee-reinhardt
Copy link
Copy Markdown
Member

RemoveDeviceCommand::run panicked when the API returned HTTP 204 No Content (the expected response for a successful delete). Changed the None arm from panic!() to a no-op, matching how DeleteCommand already handles this.

Copilot AI review requested due to automatic review settings March 7, 2026 06:32
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a panic in the bundle-overrides devices remove CLI command when the API returns HTTP 204 No Content (successful delete), aligning behavior with other delete-style commands that don’t require a response body.

Changes:

  • Update RemoveDeviceCommand::run to treat None (no JSON response body) as success instead of panicking.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread src/api/bundle_overrides.rs Outdated
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.
@lee-reinhardt lee-reinhardt merged commit 546df5f into main Mar 23, 2026
7 checks passed
@lee-reinhardt lee-reinhardt deleted the lee-eng-1472 branch March 23, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants