Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonxslays committed Nov 27, 2021
1 parent a2e070e commit 6f7107e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,7 @@ impl Client {
.await
{
Ok(data) => match data.status() {
reqwest::StatusCode::OK => {
Ok(data.json::<ExecutorResponse>().await?)
}
reqwest::StatusCode::OK => Ok(data.json::<ExecutorResponse>().await?),
_ => {
let exec_result = super::ExecutionResult {
stdout: String::new(),
Expand All @@ -240,9 +238,7 @@ impl Client {
Ok(exec_response)
}
},
Err(e) => {
Err(Box::new(e))
}
Err(e) => Err(Box::new(e)),
}
}
}
Expand Down

0 comments on commit 6f7107e

Please sign in to comment.