simplify bool expression

This commit is contained in:
David Tardon 2010-11-20 13:38:48 +01:00
parent 4d0ed3354a
commit 45e36ce06f

View file

@ -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 &)
{