Merge pull request #1032 from diath/fix_config_setvalue

Fix clearing a config key
This commit is contained in:
Konrad Kuśnierz 2019-06-03 00:53:12 +02:00 committed by GitHub
commit 7922f8238e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ void Config::clear()
void Config::setValue(const std::string& key, const std::string& value) void Config::setValue(const std::string& key, const std::string& value)
{ {
if(key == "") { if(value == "") {
remove(key); remove(key);
return; return;
} }