Kaydet (Commit) 4d6bd06c authored tarafından rbuj's avatar rbuj Kaydeden (comit) Noel Grandin

scripting: there isn't any benefit by reducing the scope here.

Change-Id: I73ebfac7b44d3fba7da70788784492fa3c53c572
Reviewed-on: https://gerrit.libreoffice.org/11312Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 19be6cfc
...@@ -244,20 +244,17 @@ public class Parcel implements XNameContainer ...@@ -244,20 +244,17 @@ public class Parcel implements XNameContainer
{ {
try try
{ {
ScriptMetaData script = null; ScriptMetaData script = (ScriptMetaData)getByName( Name );
if ( ( script = (ScriptMetaData)getByName( Name ) ) != null ) 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 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 have removed script source file " + Name);
m_descriptor.removeScriptEntry( script ); m_descriptor.removeScriptEntry( script );
writeParcelDescriptor(); writeParcelDescriptor();
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment