From 7f48fa8152bd3320af7276d811b752c5a762dcce Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 1 Nov 2018 13:14:09 +0200 Subject: loplugin:collapseif in tools..xmloff Change-Id: Iea1227a9f13a0a618d9bb6b0bbedaa5ce8d1a4f5 Reviewed-on: https://gerrit.libreoffice.org/62732 Tested-by: Jenkins Reviewed-by: Noel Grandin --- unotools/source/config/bootstrap.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'unotools') diff --git a/unotools/source/config/bootstrap.cxx b/unotools/source/config/bootstrap.cxx index a084375aedda..69f530ae240c 100644 --- a/unotools/source/config/bootstrap.cxx +++ b/unotools/source/config/bootstrap.cxx @@ -298,11 +298,8 @@ static PathStatus checkStatusAndNormalizeURL(OUString & _sURL) eStatus = implCheckStatusOfURL(_sURL,aDirItem); - if (eStatus == Bootstrap::PATH_EXISTS) - { - if (!implNormalizeURL(_sURL,aDirItem)) - OSL_FAIL("Unexpected failure getting actual URL for existing object"); - } + if (eStatus == Bootstrap::PATH_EXISTS && !implNormalizeURL(_sURL,aDirItem)) + OSL_FAIL("Unexpected failure getting actual URL for existing object"); } return eStatus; } -- cgit