fixup: use if instead of match
This commit is contained in:
parent
d480b14bea
commit
db420f3a52
1 changed files with 4 additions and 3 deletions
|
|
@ -90,9 +90,10 @@ impl Magnet {
|
|||
id20,
|
||||
id32,
|
||||
trackers,
|
||||
select_only: match files.is_empty() {
|
||||
true => None,
|
||||
false => Some(files),
|
||||
select_only: if files.is_empty() {
|
||||
None
|
||||
} else {
|
||||
Some(files)
|
||||
},
|
||||
}),
|
||||
false => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue