refact(core): manual let else
This commit is contained in:
@@ -273,9 +273,7 @@ impl Pacdef {
|
|||||||
for arg_group in args {
|
for arg_group in args {
|
||||||
let possible_group = self.groups.iter().find(|g| g.name == **arg_group);
|
let possible_group = self.groups.iter().find(|g| g.name == **arg_group);
|
||||||
|
|
||||||
let group = if let Some(group) = possible_group {
|
let Some(group) = possible_group else {
|
||||||
group
|
|
||||||
} else {
|
|
||||||
errors.push((*arg_group).clone());
|
errors.push((*arg_group).clone());
|
||||||
continue;
|
continue;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user