scripting: there isn't any benefit by reducing the scope here.
Change-Id: I73ebfac7b44d3fba7da70788784492fa3c53c572 Reviewed-on: https://gerrit.libreoffice.org/11312 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
@@ -244,20 +244,17 @@ public class Parcel implements XNameContainer
|
||||
{
|
||||
try
|
||||
{
|
||||
ScriptMetaData script = null;
|
||||
if ( ( script = (ScriptMetaData)getByName( Name ) ) != null )
|
||||
ScriptMetaData script = (ScriptMetaData)getByName( Name );
|
||||
if ( script != null )
|
||||
{
|
||||
if ( !script.removeSourceFile() )
|
||||
{
|
||||
if ( !script.removeSourceFile() )
|
||||
{
|
||||
LogUtils.DEBUG("** Parcel.removeByName Failed to remove script " + Name );
|
||||
throw new com.sun.star.lang.WrappedTargetException("Failed to remove script " + Name );
|
||||
}
|
||||
LogUtils.DEBUG("** Parcel.removeByName have removed script source file " + Name );
|
||||
LogUtils.DEBUG("** Parcel.removeByName Failed to remove script " + Name);
|
||||
throw new com.sun.star.lang.WrappedTargetException("Failed to remove script " + Name);
|
||||
}
|
||||
LogUtils.DEBUG("** Parcel.removeByName have removed script source file " + Name);
|
||||
m_descriptor.removeScriptEntry( script );
|
||||
writeParcelDescriptor();
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user