simplify bool expression
This commit is contained in:
parent
4d0ed3354a
commit
45e36ce06f
1 changed files with 2 additions and 5 deletions
|
@ -625,11 +625,8 @@ bool RegisteredDb::getEntry(::rtl::OUString const & url)
|
|||
Reference<css::xml::xpath::XXPathAPI> xpathApi = getXPathAPI();
|
||||
Reference<css::xml::dom::XNode> aNode =
|
||||
xpathApi->selectSingleNode(root, sExpression);
|
||||
if (!aNode.is())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
return aNode.is();
|
||||
}
|
||||
catch(css::uno::Exception &)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue