Skip to content

Commit

Permalink
HttpSecurityRecorder - drop duplicate IF condition
Browse files Browse the repository at this point in the history
(cherry picked from commit 7a3ba97)
  • Loading branch information
michalvavrik authored and gsmet committed Dec 20, 2022
1 parent 26ba30f commit fc95dde
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,7 @@ public Uni<? extends SecurityIdentity> apply(SecurityIdentity securityIdentity)
public void accept(SecurityIdentity identity, Throwable throwable, Boolean aBoolean) {
if (identity != null) {
//when the result is evaluated we set the user, even if it is evaluated lazily
if (identity != null) {
event.setUser(new QuarkusHttpUser(identity));
}
event.setUser(new QuarkusHttpUser(identity));
} else if (throwable != null) {
//handle the auth failure
//this can be customised
Expand Down

0 comments on commit fc95dde

Please sign in to comment.