HackStudio: Replace uses of JsonObject::get_deprecated()/get_ptr()
This commit is contained in:
parent
6fdfa9f313
commit
141aa37eda
Notes:
sideshowbarker
2024-07-17 03:45:48 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/141aa37eda Pull-request: https://github.com/SerenityOS/serenity/pull/17185
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
|
||||
{
|
||||
auto const& value = m_config.get_deprecated(key_name);
|
||||
if (!value.is_string())
|
||||
return {};
|
||||
|
||||
return { value.as_string() };
|
||||
return m_config.get_deprecated_string(key_name);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue