Remove unnecessary conditional
This commit is contained in:
parent
d910a2d0e7
commit
3e17172f6e
3 changed files with 9 additions and 12 deletions
|
|
@ -62,8 +62,5 @@ void ts_document_set_input_string(TSDocument *document, const char *text) {
|
|||
}
|
||||
|
||||
TSNode ts_document_root_node(const TSDocument *document) {
|
||||
if (document->tree)
|
||||
return ts_node_make(document->tree, ts_length_zero());
|
||||
else
|
||||
return ts_node_null();
|
||||
return ts_node_make(document->tree, ts_length_zero());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue