remove redundant check
This commit is contained in:
parent
626f70ac4b
commit
ff992b82d3
1 changed files with 6 additions and 8 deletions
14
src/main.rs
14
src/main.rs
|
@ -150,14 +150,12 @@ async fn link(
|
|||
.get_mut(&id)
|
||||
.filter(|record| record.can_be_downloaded())
|
||||
{
|
||||
if record.can_be_downloaded() {
|
||||
return Ok(Html(ssr::render({
|
||||
let record = record.clone();
|
||||
|| {
|
||||
leptos::view! { <DownloadLinkPage id=id record=record /> }
|
||||
}
|
||||
})));
|
||||
}
|
||||
return Ok(Html(ssr::render({
|
||||
let record = record.clone();
|
||||
|| {
|
||||
leptos::view! { <DownloadLinkPage id=id record=record /> }
|
||||
}
|
||||
})));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue