Close is handled automatically.

This commit is contained in:
Tastybento 2018-02-07 19:13:40 -08:00
parent 7e7b259531
commit 3f35afc76a

View File

@ -162,7 +162,6 @@ public abstract class Addon implements AddonInterface {
if (jarConfig != null) { if (jarConfig != null) {
try (InputStream in = jar.getInputStream(jarConfig)) { try (InputStream in = jar.getInputStream(jarConfig)) {
if (in == null) { if (in == null) {
jar.close();
throw new IllegalArgumentException("The embedded resource '" + jarResource + "' cannot be found in " + jar.getName()); throw new IllegalArgumentException("The embedded resource '" + jarResource + "' cannot be found in " + jar.getName());
} }
// There are two options, use the path of the resource or not // There are two options, use the path of the resource or not