1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:34:59 +00:00

config: Allow setting a key to the empty string

This commit is contained in:
Ralf Donau 2022-04-26 21:08:49 +02:00 committed by Linus Groh
parent a67bbf1ac4
commit e11fb83bb7

View file

@ -32,7 +32,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
return 0;
}
if (!value_to_write.is_empty()) {
if (!value_to_write.is_null()) {
Config::write_string(domain, group, key, value_to_write);
return 0;
}