Skip to content

Commit

Permalink
Remove redundant equal check in TypeCheckCache
Browse files Browse the repository at this point in the history
  • Loading branch information
warunalakshitha committed Dec 11, 2024
1 parent 7e5f313 commit 0ccf421
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ public TypeCheckCache(T owner) {
}

public Optional<Boolean> cachedTypeCheckResult(T other) {
if (other.equals(owner)) {
return Optional.of(true);
}
return Optional.ofNullable(cachedResults.get(other));
}

Expand Down

0 comments on commit 0ccf421

Please sign in to comment.