Fixed another code smell in JSONDatabaseHandler

This commit is contained in:
Florian CUNY 2019-08-13 11:12:46 +02:00
parent 537b854c75
commit 68f90edb2f

View File

@ -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);