Skip to content

Commit

Permalink
Small bug fix in SymbolTable class.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Sep 27, 2024
1 parent 250a319 commit e4ba752
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/core/SymbolTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ void SymbolTable::setSymbol(const std::string& name, DynamicObject value) {
}

bool SymbolTable::hasSymbol(const std::string& name) {
std::lock_guard<std::mutex> lock(this->mtx);
return this->table.find(name) != this->table.end() ||
(this->parent && this->parent->hasSymbol(name));
}
Expand Down

0 comments on commit e4ba752

Please sign in to comment.