Skip to content

Commit

Permalink
🎨 Lint
Browse files Browse the repository at this point in the history
Signed-off-by: Evaline Ju <69598118+evaline-ju@users.noreply.github.com>
  • Loading branch information
evaline-ju committed May 22, 2024
1 parent 95620d8 commit c85ad73
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ async fn classification_with_gen(
) -> Result<impl IntoResponse, Error> {
let request_id = Uuid::new_v4();
// Upfront request validation
if let Err(e) = request.upfront_validate() {
return Err(e.into());
};
request.upfront_validate()?;
let task = ClassificationWithGenTask::new(request_id, request);
match state
.orchestrator
Expand Down

0 comments on commit c85ad73

Please sign in to comment.