summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/DevTools/HackStudio/LanguageServers/FileDB.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/DevTools/HackStudio/LanguageServers/FileDB.cpp b/Userland/DevTools/HackStudio/LanguageServers/FileDB.cpp
index a7afa83ce0..73f74d7d0c 100644
--- a/Userland/DevTools/HackStudio/LanguageServers/FileDB.cpp
+++ b/Userland/DevTools/HackStudio/LanguageServers/FileDB.cpp
@@ -67,7 +67,8 @@ String FileDB::to_absolute_path(const String& filename) const
if (LexicalPath { filename }.is_absolute()) {
return filename;
}
- VERIFY(!m_project_root.is_null());
+ if (m_project_root.is_null())
+ return filename;
return LexicalPath { String::formatted("{}/{}", m_project_root, filename) }.string();
}