code cleanup
This commit is contained in:
parent
275d4cd7b4
commit
ec8f7c9258
1 changed files with 0 additions and 4 deletions
|
@ -546,10 +546,6 @@ public class ConfigurationNodeController extends EntityController<ConfigurationN
|
||||||
return Result.of(result);
|
return Result.of(result);
|
||||||
|
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
// NOTE: It seems that this has to be manually closed on error case
|
|
||||||
// We expected that this is closed by the API but if this manual close is been left
|
|
||||||
// some left-overs will affect strange behavior.
|
|
||||||
// TODO: find a better solution for this
|
|
||||||
IOUtils.closeQuietly(inputStream);
|
IOUtils.closeQuietly(inputStream);
|
||||||
return Result.ofError(e);
|
return Result.ofError(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue