mirror of
https://github.com/RPCS3/pugixml.git
synced 2026-01-31 01:25:21 +01:00
Remove redundant has_value check
This commit is contained in:
@@ -5457,7 +5457,7 @@ namespace pugi
|
||||
if (!_root) return PUGIXML_TEXT("");
|
||||
|
||||
for (xml_node_struct* i = _root->first_child; i; i = i->next_sibling)
|
||||
if (impl::has_value(i) && i->contents && impl::is_text_node(i))
|
||||
if (impl::is_text_node(i) && i->contents)
|
||||
return i->contents;
|
||||
|
||||
return PUGIXML_TEXT("");
|
||||
|
||||
Reference in New Issue
Block a user