remove redundant check
parent
626f70ac4b
commit
ff992b82d3
|
@ -150,7 +150,6 @@ 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();
|
||||
|| {
|
||||
|
@ -159,7 +158,6 @@ async fn link(
|
|||
})));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: This....
|
||||
state.remove_record(&id).await.unwrap();
|
||||
|
|
Loading…
Reference in New Issue