mirror of
https://github.com/Steffo99/patched-porobot.git
synced 2024-12-22 17:44:22 +00:00
Use ?
operator in Deck::min_deckcode_version
This commit is contained in:
parent
60060b9a31
commit
b432103c56
1 changed files with 1 additions and 3 deletions
|
@ -108,9 +108,7 @@ impl DeckCodeVersioned for Deck {
|
||||||
|
|
||||||
// TODO: I'm almost sure this can be optimized, but it's 5 AM
|
// TODO: I'm almost sure this can be optimized, but it's 5 AM
|
||||||
for version in versions.clone() {
|
for version in versions.clone() {
|
||||||
if version.is_none() {
|
version?;
|
||||||
return None;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let versions = versions.map(|v| v.unwrap());
|
let versions = versions.map(|v| v.unwrap());
|
||||||
|
|
Loading…
Reference in a new issue