chain: dont check for null settings value in overwriteRwSetting

- Just call updateRwSetting it will erase the settings when the new
  value is null.
This commit is contained in:
ismaelsadeeq
2024-09-08 20:26:49 +01:00
parent df601993f2
commit f8d91f49c7
2 changed files with 3 additions and 1 deletions

View File

@@ -834,7 +834,6 @@ public:
}
bool overwriteRwSetting(const std::string& name, common::SettingsValue value, interfaces::SettingsAction action) override
{
if (value.isNull()) return deleteRwSettings(name, action);
return updateRwSetting(name, [&](common::SettingsValue& settings) {
settings = std::move(value);
return action;