Skip to content

Commit

Permalink
ref: remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
Vann-Dev committed Dec 15, 2023
1 parent fe9a1b8 commit 28f5601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub async fn server() {
let api = warp::get()
.and(warp::path::param())
.and_then(|params: String| async {
if decoder::validate(params.clone()) == true {
if decoder::validate(params.clone()) {
Result::<_, Rejection>::Ok(warp::reply::json(&decoder::decode(params)))
} else {
Result::<_, Rejection>::Ok(warp::reply::json(&"False"))
Expand Down

0 comments on commit 28f5601

Please sign in to comment.