diff --git a/src/lib/data/SqliteIndexStorage.cpp b/src/lib/data/SqliteIndexStorage.cpp index 844131c9..fa706043 100644 --- a/src/lib/data/SqliteIndexStorage.cpp +++ b/src/lib/data/SqliteIndexStorage.cpp @@ -67,11 +67,11 @@ void SqliteIndexStorage::addSymbol(const int id, const int definitionKind) ); } -bool SqliteIndexStorage::addFile(const int id, const std::string& filePath, const std::string& modificationTime, bool complete) +void SqliteIndexStorage::addFile(const int id, const std::string& filePath, const std::string& modificationTime, bool complete) { if (getFileByPath(filePath).id != 0) { - return false; + return; } std::shared_ptr content = TextAccess::createFromFile(filePath); diff --git a/src/lib/data/SqliteIndexStorage.h b/src/lib/data/SqliteIndexStorage.h index 699919c3..26074cd2 100644 --- a/src/lib/data/SqliteIndexStorage.h +++ b/src/lib/data/SqliteIndexStorage.h @@ -34,7 +34,7 @@ public: Id addNode(const int type, const std::string& serializedName); void addSymbol(const int id, int definitionKind); - bool addFile(const int id, const std::string& filePath, const std::string& modificationTime, bool complete); + void addFile(const int id, const std::string& filePath, const std::string& modificationTime, bool complete); Id addLocalSymbol(const std::string& name); Id addSourceLocation(Id fileNodeId, uint startLine, uint startCol, uint endLine, uint endCol, int type); bool addOccurrence(Id elementId, Id sourceLocationId);