mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 05:05:18 +01:00
Fixed another code smell in JSONDatabaseHandler
This commit is contained in:
parent
537b854c75
commit
68f90edb2f
@ -59,7 +59,6 @@ public class JSONDatabaseHandler<T> extends AbstractJSONDatabaseHandler<T> {
|
||||
try (FileReader reader = new FileReader(file)){
|
||||
T object = getGson().fromJson(reader, dataObject);
|
||||
if (object == null) {
|
||||
reader.close();
|
||||
throw new IOException("JSON file created a null object: " + file.getPath());
|
||||
}
|
||||
list.add(object);
|
||||
|
Loading…
Reference in New Issue
Block a user