mirror of
https://github.com/RGBCube/serenity
synced 2025-07-08 20:07:35 +00:00
HackStudio: Replace uses of JsonObject::get_deprecated()/get_ptr()
This commit is contained in:
parent
6fdfa9f313
commit
141aa37eda
1 changed files with 1 additions and 5 deletions
|
@ -35,11 +35,7 @@ NonnullOwnPtr<ProjectConfig> ProjectConfig::create_empty()
|
||||||
|
|
||||||
Optional<DeprecatedString> ProjectConfig::read_key(DeprecatedString key_name) const
|
Optional<DeprecatedString> ProjectConfig::read_key(DeprecatedString key_name) const
|
||||||
{
|
{
|
||||||
auto const& value = m_config.get_deprecated(key_name);
|
return m_config.get_deprecated_string(key_name);
|
||||||
if (!value.is_string())
|
|
||||||
return {};
|
|
||||||
|
|
||||||
return { value.as_string() };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue