Skip to content

Commit 7652b00

Browse files
committed
feat: Remove redundant code
1 parent cde4ddd commit 7652b00

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/tooling/leyden/aotcache/Information.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ public void addAOTCacheElement(Element e, String source) {
6565
// referenced before the class it belongs to gets referenced.
6666
// So we have to make sure elements are not repeated both in
6767
// this.elements and this.elementsNotInTheCache
68-
if (elementsNotInTheCache.containsKey(key)) {
69-
elementsNotInTheCache.remove(key);
70-
}
68+
elementsNotInTheCache.remove(key);
7169

7270
if (e.getAddress() != null) {
7371
elementsByAddress.putIfAbsent(e.getAddress(), e);

0 commit comments

Comments
 (0)