Skip to content

Commit

Permalink
#24 Fix Checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
JavaCoDED78 committed Jun 18, 2024
1 parent 3e6ef7e commit 2375e60
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ public TokenStorageImpl() {
scheduler.scheduleAtFixedRate(
() -> {
Date date = new Date();
for (Map.Entry<String, TokenEntry> entry : tokens.entrySet()) {
if (entry.getValue().isAfter(date)) {
tokens.remove(entry.getKey());
}
}
tokens.entrySet().removeIf(
entry -> entry.getValue().isAfter(date)
);
},
0,
1,
Expand Down

0 comments on commit 2375e60

Please sign in to comment.