mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-04 01:32:31 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user