mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-12-27 11:14:27 +01:00
Moving the unwraping of a variable
Moving the unwraping of the variable "rule" inside the condition instead of the if body, for the migration of the database from version 11 to 12.
This commit is contained in:
parent
d47c1a8ba6
commit
a2d8aec1e3
1 changed files with 2 additions and 2 deletions
|
@ -851,8 +851,8 @@ impl KeyValueDatabase {
|
|||
|
||||
for transformation in underride_rule_transformation {
|
||||
let rule = rules_list.underride.get(transformation[0]);
|
||||
if rule.is_some() {
|
||||
let mut rule = rule.unwrap().clone();
|
||||
if let Some(rule) = rule {
|
||||
let mut rule = rule.clone();
|
||||
rule.rule_id = transformation[1].to_string();
|
||||
rules_list.underride.remove(transformation[0]);
|
||||
rules_list.underride.insert(rule);
|
||||
|
|
Loading…
Reference in a new issue