Return the not-closed stream

Former-commit-id: 268d99a2ce8ce0951fb1707a8271652280ab4ba0
This commit is contained in:
Ghost_chu committed 2020-07-31 15:03:43 +08:00
1 parent 41084dcec3
commit e462ed831f
1 file changed
-7
@@ -89,13 +89,6 @@ public class Language {
Util.debugLog("Gets default language input stream failed, using fallback.");
inputStream = plugin.getResource("lang-original/messages.json");
}
try {
if (inputStream != null) {
inputStream.close();
}
} catch (IOException ioException) {
ioException.printStackTrace();
}
return inputStream;
// File name should call type-language.yml ---> config-zh.yml
}