🐛 fix(rm_cli): rule removal save
- ensure the config is saved after removing a rule by id or label
This commit is contained in:
committed by
Jeremiah Russell
parent
0dab9cc427
commit
7b196794b5
@@ -19,10 +19,12 @@ impl RmCli {
|
||||
|
||||
if let Some(id) = self.id {
|
||||
config.remove_rule_by_id(id)?;
|
||||
config.save()?;
|
||||
}
|
||||
|
||||
if let Some(label) = &self.label {
|
||||
config.remove_rule_by_label(label)?;
|
||||
config.save()?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user