Skip to content

Commit

Permalink
Remove unnecessary method overload in ExpireKit
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvest committed Jun 2, 2024
1 parent f1a02ac commit 21147dd
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/test/java/stormpot/ExpireKit.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ public static CountingExpiration expire(Expire... checks) {
return $if(cond, $expired, $fresh);
}

public static Expire $throwExpire(Exception exception) {
return info -> {
throw exception;
};
}

public static Expire $throwExpire(Throwable throwable) {
return info -> {
UnitKit.sneakyThrow(throwable);
Expand Down

0 comments on commit 21147dd

Please sign in to comment.