Codeclimate fix

This commit is contained in:
Gabriele C. 2024-04-26 03:26:46 +02:00
parent 02e28052d5
commit 64742707c6
1 changed files with 4 additions and 1 deletions

View File

@ -177,7 +177,10 @@ public class GeoIpService {
}
private void startReading() throws IOException {
databaseReader = new DatabaseReader.Builder(dataFile.toFile()).withCache(new CHMCache()).fileMode(FileMode.MEMORY).build();
databaseReader = new DatabaseReader.Builder(dataFile.toFile())
.withCache(new CHMCache())
.fileMode(FileMode.MEMORY)
.build();
logger.info(LICENSE);
// clear downloading flag, because we now have working reader instance