Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-2449

Remove unneeded null check in OidcCookieTokenStore#logout

XMLWordPrintable

      In OidcCookieTokenStore#logout, there's an unnecessary null check here:

      https://github.com/wildfly-security/wildfly-elytron/blob/1.x/http/oidc/src/main/java/org/wildfly/security/http/oidc/OidcCookieTokenStore.java#L140

      Notice that when we get to this point, it's not possible for securityContext to be null. Thus we can remove the null check on line 140.

            anan2946 Anupama Bhardwaj (Inactive)
            fjuma1@redhat.com Farah Juma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: