Skip to content

Commit

Permalink
chain: dont check for null settings value in overwriteRwSetting
Browse files Browse the repository at this point in the history
- Just call updateRwSetting it will erase the settings when the new
  value is null.
  • Loading branch information
ismaelsadeeq committed Sep 8, 2024
1 parent b149d4f commit adc0198
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/node/interfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,6 @@ class ChainImpl : public Chain
}
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;
Expand Down

0 comments on commit adc0198

Please sign in to comment.