Skip to content

Commit

Permalink
Codeclimate fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sgdc3 committed Apr 26, 2024
1 parent 02e2805 commit 6474270
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/fr/xephi/authme/service/GeoIpService.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ private void updateDatabase() {
}

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
Expand Down

0 comments on commit 6474270

Please sign in to comment.