Remove temporary variable
This commit is contained in:
parent
7d766ee39e
commit
0572951c8a
|
@ -140,15 +140,12 @@ public class AccountDatabaseCrawler implements Managed, Runnable {
|
||||||
|
|
||||||
private List<Account> readChunk(Optional<UUID> fromUuid, int chunkSize) {
|
private List<Account> readChunk(Optional<UUID> fromUuid, int chunkSize) {
|
||||||
try (Timer.Context timer = readChunkTimer.time()) {
|
try (Timer.Context timer = readChunkTimer.time()) {
|
||||||
List<Account> chunkAccounts;
|
|
||||||
|
|
||||||
if (fromUuid.isPresent()) {
|
if (fromUuid.isPresent()) {
|
||||||
chunkAccounts = accounts.getAllFrom(fromUuid.get(), chunkSize);
|
return accounts.getAllFrom(fromUuid.get(), chunkSize);
|
||||||
} else {
|
|
||||||
chunkAccounts = accounts.getAllFrom(chunkSize);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return chunkAccounts;
|
return accounts.getAllFrom(chunkSize);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue