Skip to content

Commit

Permalink
Fix random lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nikthechampiongr committed Sep 13, 2024
1 parent 35dfe4c commit a103ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/confirm_subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub async fn confirm(parameters: Query<Parameters>, pool: web::Data<sqlx::PgPool
Err(_) => return HttpResponse::InternalServerError().finish(),
};

if let Err(_) = confirm_subscriber(pool.as_ref(), subscriber_id).await {
if (confirm_subscriber(pool.as_ref(), subscriber_id).await).is_err() {
return HttpResponse::InternalServerError().finish();
}
HttpResponse::Ok().finish()
Expand Down

0 comments on commit a103ded

Please sign in to comment.