mirror of
https://github.com/timvisee/ffsend.git
synced 2025-10-03 09:39:15 +02:00
Fix force flag not working with invalid download limits
This commit is contained in:
parent
1754bda00f
commit
37579b8f65
1 changed files with 2 additions and 2 deletions
|
@ -19,9 +19,9 @@ impl ArgDownloadLimit {
|
||||||
// Get the download value
|
// Get the download value
|
||||||
let mut downloads = Self::value(matches)?;
|
let mut downloads = Self::value(matches)?;
|
||||||
|
|
||||||
// Get number of allowed downloads, return if allowed
|
// Get number of allowed downloads, return if allowed or when forcing
|
||||||
let allowed = downloads_max(api_version, auth);
|
let allowed = downloads_max(api_version, auth);
|
||||||
if allowed.contains(&downloads) {
|
if allowed.contains(&downloads) || main_matcher.force() {
|
||||||
return Some(downloads);
|
return Some(downloads);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue