fixup: use if instead of match

This commit is contained in:
pasta 2024-10-02 14:33:40 -05:00
parent d480b14bea
commit db420f3a52
No known key found for this signature in database
GPG key ID: E2F3D7916E722D38

View file

@ -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 => {