Remove more unwrap

This commit is contained in:
micialware committed 2026-08-24 23:27:24 +03:00
1 parent b5b1eb768c
commit d836b57d2a
5 files changed
+74 -62

No files matched your search

+5 -2
View File
@@ -105,12 +105,15 @@ impl DeckSettings {
.iter()
.find(|g| g.id == word.group_id)
.cloned()
.unwrap()
.expect("No group id")
.name,
);
let result = engine.eval_ast_with_scope::<bool>(&mut scope, &ast);
result.is_ok() && result.unwrap()
if let Ok(result) = result {
return result
}
false
})
.map(|(index, _)| index)
.collect();