Skip to content

Commit 6aecb37

Browse files
committed
Removing unused generic variable - code smell
1 parent 57c1967 commit 6aecb37

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main/java/com/caching/LRUCache.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public void put(int key, T value) {
6363
System.out.println("Cache set to 0 capacity. No elements will be cached");
6464
}
6565

66-
T currentValue = cache.get(key);
6766
if (!cache.containsKey(key)) {
6867
cache.put(key, value);
6968
System.out.println("Adding new key:" + key + " to cache");

0 commit comments

Comments
 (0)