Small cleanup in String::operator==
This commit is contained in:
parent
a63624f2aa
commit
fb1ef60f7d
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ namespace tree_sitter {
|
|||
|
||||
bool String::operator==(const Rule &rule) const {
|
||||
const String *other = dynamic_cast<const String *>(&rule);
|
||||
return (other != NULL) && (other->value == value);
|
||||
return other && (other->value == value);
|
||||
}
|
||||
|
||||
size_t String::hash_code() const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue