Skip to content

Commit

Permalink
Rename method to make shit be less confusing
Browse files Browse the repository at this point in the history
  • Loading branch information
DxsSucuk committed Aug 29, 2024
1 parent 05e886c commit 66ddc99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/presti/ree6/main/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,8 @@ public void createCheckerThread() {
ArrayList<Giveaway> toDelete = new ArrayList<>();
Instant currentTime = Instant.now();
for (Giveaway giveaway : giveawayManager.getList()) {
Instant giveAwayTime = giveaway.getEnding().toInstant();
if (giveAwayTime.isBefore(Instant.now()) && giveAwayTime.isAfter(currentTime.minus(1, ChronoUnit.MINUTES))) {
Instant giveAwayEndingTime = giveaway.getEnding().toInstant();
if (giveAwayEndingTime.isBefore(Instant.now()) && giveAwayEndingTime.isAfter(currentTime.minus(1, ChronoUnit.MINUTES))) {
Guild guild = BotWorker.getShardManager().getGuildById(giveaway.getGuildId());

if (guild == null) {
Expand Down

0 comments on commit 66ddc99

Please sign in to comment.