refact(core): manual let else

This commit is contained in:
steven-omaha
2023-06-02 14:07:54 +02:00
parent a573cd18f8
commit a7e36324dc
+1 -3
View File
@@ -273,9 +273,7 @@ impl Pacdef {
for arg_group in args {
let possible_group = self.groups.iter().find(|g| g.name == **arg_group);
let group = if let Some(group) = possible_group {
group
} else {
let Some(group) = possible_group else {
errors.push((*arg_group).clone());
continue;
};