code cleanup

This commit is contained in:
anhefti 2021-04-20 16:17:31 +02:00
parent 275d4cd7b4
commit ec8f7c9258

View file

@ -546,10 +546,6 @@ public class ConfigurationNodeController extends EntityController<ConfigurationN
return Result.of(result);
} 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);
return Result.ofError(e);
}