Skip to content

Commit

Permalink
Inline single use variable
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Sep 3, 2024
1 parent 549e884 commit f690413
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/apache/commons/pool2/PoolUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -1352,8 +1352,7 @@ public static <K, V> Map<K, TimerTask> checkMinIdle(
}
final Map<K, TimerTask> tasks = new HashMap<>(keys.size());
for (final K key : keys) {
final TimerTask task = checkMinIdle(keyedPool, key, minIdle, periodMillis);
tasks.put(key, task);
tasks.put(key, checkMinIdle(keyedPool, key, minIdle, periodMillis));
}
return tasks;
}
Expand Down

0 comments on commit f690413

Please sign in to comment.