mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-17 14:19:41 -05:00
Return the not-closed stream
Former-commit-id: 268d99a2ce8ce0951fb1707a8271652280ab4ba0
This commit is contained in:
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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user