Remove unnecessary conditional

This commit is contained in:
Max Brunsfeld 2015-08-16 10:54:02 -07:00
parent d910a2d0e7
commit 3e17172f6e
3 changed files with 9 additions and 12 deletions

View file

@ -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());
}