We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8a8bf57 + 7ce3cab commit 127aad8Copy full SHA for 127aad8
src/main/java/io/ipinfo/api/cache/SimpleCache.java
@@ -70,8 +70,7 @@ public boolean hasExpired() {
70
long time = expiration.addTo(creation).getLong(ChronoField.INSTANT_SECONDS);
71
long now = System.currentTimeMillis();
72
73
- if (now > time) return false;
74
- return true;
+ return now <= time;
75
}
76
77
public T getData() {
0 commit comments