diff options
Diffstat (limited to 'src/commands/utilities.rs')
| -rw-r--r-- | src/commands/utilities.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/commands/utilities.rs b/src/commands/utilities.rs index 10ce403..3f7e812 100644 --- a/src/commands/utilities.rs +++ b/src/commands/utilities.rs | |||
| @@ -329,11 +329,10 @@ async fn find_downloaded_file(dir: &str) -> Option<(String, String)> { | |||
| 329 | Ok(t) => t, | 329 | Ok(t) => t, |
| 330 | Err(_) => continue, | 330 | Err(_) => continue, |
| 331 | }; | 331 | }; |
| 332 | if let Some((t, _)) = &newest { | 332 | if let Some((t, _)) = &newest |
| 333 | if *t >= mtime { | 333 | && *t >= mtime { |
| 334 | continue; | 334 | continue; |
| 335 | } | 335 | } |
| 336 | } | ||
| 337 | newest = Some((mtime, entry.path().to_string_lossy().into_owned())); | 336 | newest = Some((mtime, entry.path().to_string_lossy().into_owned())); |
| 338 | } | 337 | } |
| 339 | newest.map(|(_, p)| { | 338 | newest.map(|(_, p)| { |
