Skip to content

Commit

Permalink
Properly use blob related cases in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrylavrenov committed Sep 16, 2024
1 parent e37b3ba commit fd80630
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/robonode-client/src/enroll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ impl Client {
let res = self.reqwest.post(url).json(&req).send().await?;
match res.status() {
StatusCode::CREATED if res.content_length() == Some(0) => Ok(EnrollResponse {
scan_result_blob: None,
})
scan_result_blob: None,
}),
StatusCode::CREATED => Ok(res.json().await?),
status => Err(Error::Call(EnrollError::from_response(
status,
Expand Down

0 comments on commit fd80630

Please sign in to comment.