mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03:00
LanguageServers/Cpp: Don't VERIFY that a file could be found
... when creating a new DocumentData
This commit is contained in:
parent
477e13f6c5
commit
e20cd1d8db
Notes:
sideshowbarker
2024-07-18 21:54:00 +09:00
Author: https://github.com/itamar8910 Commit: https://github.com/SerenityOS/serenity/commit/e20cd1d8dbf Pull-request: https://github.com/SerenityOS/serenity/pull/5537
@ -60,7 +60,8 @@ const ParserAutoComplete::DocumentData& ParserAutoComplete::get_document_data(co
|
||||
OwnPtr<ParserAutoComplete::DocumentData> ParserAutoComplete::create_document_data_for(const String& file)
|
||||
{
|
||||
auto document = filedb().get(file);
|
||||
VERIFY(document);
|
||||
if (!document)
|
||||
return {};
|
||||
auto content = document->text();
|
||||
auto document_data = make<DocumentData>(document->text(), file);
|
||||
auto root = document_data->parser.parse();
|
||||
|
Loading…
Reference in New Issue
Block a user