Remove temporary variable

This commit is contained in:
erdinc authored and Ehren Kret committed 2021-04-08 12:38:06 -05:00
1 parent 7d766ee39e
commit 0572951c8a
1 file changed
+2 -5
@@ -140,15 +140,12 @@ public class AccountDatabaseCrawler implements Managed, Runnable {
private List<Account> readChunk(Optional<UUID> fromUuid, int chunkSize) {
try (Timer.Context timer = readChunkTimer.time()) {
List<Account> chunkAccounts;
if (fromUuid.isPresent()) {
chunkAccounts = accounts.getAllFrom(fromUuid.get(), chunkSize);
} else {
chunkAccounts = accounts.getAllFrom(chunkSize);
return accounts.getAllFrom(fromUuid.get(), chunkSize);
}
return chunkAccounts;
return accounts.getAllFrom(chunkSize);
}
}