summaryrefslogtreecommitdiff
path: root/desktop/source/pkgchk
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/pkgchk')
-rw-r--r--desktop/source/pkgchk/unopkg/unopkg_app.cxx10
-rw-r--r--desktop/source/pkgchk/unopkg/unopkg_misc.cxx7
2 files changed, 5 insertions, 12 deletions
diff --git a/desktop/source/pkgchk/unopkg/unopkg_app.cxx b/desktop/source/pkgchk/unopkg/unopkg_app.cxx
index ee1729fb7604..a928a7e3c336 100644
--- a/desktop/source/pkgchk/unopkg/unopkg_app.cxx
+++ b/desktop/source/pkgchk/unopkg/unopkg_app.cxx
@@ -475,16 +475,12 @@ extern "C" int unopkg_main()
}
}
- if (extension.is())
- {
- allExtensions.push_back(extension);
- vecUnaccepted.push_back(bUnacceptedLic);
- }
-
- else
+ if (!extension.is())
throw lang::IllegalArgumentException(
"There is no such extension deployed: " +
cmdPackage,nullptr,-1);
+ allExtensions.push_back(extension);
+ vecUnaccepted.push_back(bUnacceptedLic);
}
}
diff --git a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
index 774e30fae122..0aafe484a21d 100644
--- a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
+++ b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx
@@ -198,15 +198,12 @@ OUString makeAbsoluteFileUrl(
oslFileError rc = osl_getFileURLFromSystemPath( sys_path.pData, &file_url.pData );
if ( rc != osl_File_E_None) {
OUString tempPath;
- if ( osl_getSystemPathFromFileURL( sys_path.pData, &tempPath.pData) == osl_File_E_None )
- {
- file_url = sys_path;
- }
- else
+ if ( osl_getSystemPathFromFileURL( sys_path.pData, &tempPath.pData) != osl_File_E_None )
{
throw RuntimeException("cannot get file url from system path: " +
sys_path );
}
+ file_url = sys_path;
}
OUString abs;