mirror of
https://github.com/TeamPiped/piped-proxy.git
synced 2024-08-14 23:50:45 +00:00
Run clippy fix.
This commit is contained in:
parent
407ee38e3a
commit
e8169726b4
1 changed files with 3 additions and 5 deletions
|
@ -274,11 +274,9 @@ async fn index(req: HttpRequest) -> Result<HttpResponse, Box<dyn Error>> {
|
|||
let range = format!("{}-{}", start, end);
|
||||
query.add_pair(("range", range));
|
||||
}
|
||||
} else {
|
||||
if let Some(clen) = clen {
|
||||
let range = format!("0-{}", clen - 1);
|
||||
query.add_pair(("range", range));
|
||||
}
|
||||
} else if let Some(clen) = clen {
|
||||
let range = format!("0-{}", clen - 1);
|
||||
query.add_pair(("range", range));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue