Skip to content

Commit

Permalink
null check
Browse files Browse the repository at this point in the history
  • Loading branch information
Panos Karampis committed Sep 24, 2024
1 parent 2794a55 commit 444b8c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public Uni<Void> applyRoles() {
return wallet;
})
.select().when(wallet -> {
return Uni.createFrom().item(danGuild.getMemberById(wallet.getDiscordId())).onItem().transform(member -> true)
return Uni.createFrom().item(danGuild.getMemberById(wallet.getDiscordId())).onItem().transform(Objects::nonNull)
.onFailure().recoverWithItem(false);
})
.onItem()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import org.slf4j.LoggerFactory;

@ApplicationScoped
@IfBuildProfile("prod")
//@IfBuildProfile("prod")
public class Scheduler {
private static final Logger log = LoggerFactory.getLogger(Scheduler.class);

Expand Down

0 comments on commit 444b8c0

Please sign in to comment.