Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
K0nnyaku committed Dec 3, 2024
1 parent df7d1b4 commit d1cc31e
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions src/routes/submission.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,11 @@ pub async fn submit(
}

let data = data.into_inner();
let submission = submission::create(
db,
&data.auth.id,
id,
data.code,
data.lang,
)
.await?
.ok_or(Error::ServerError(Json(
"Failed to submit, please try again later.".into(),
)))?;
let submission = submission::create(db, &data.auth.id, id, data.code, data.lang)
.await?
.ok_or(Error::ServerError(Json(
"Failed to submit, please try again later.".into(),
)))?;

Ok(Json(Response {
success: true,
Expand Down

0 comments on commit d1cc31e

Please sign in to comment.