[java-identity-provider] branch main updated: Remove unneeded variable.

Scott Cantor cantor.2 at osu.edu
Thu Sep 19 15:12:48 UTC 2024


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=45796ec85f5268542a22f3060fc02524671f01e9

The following commit(s) were added to refs/heads/main by this push:
     new 45796ec85 Remove unneeded variable.
45796ec85 is described below

commit 45796ec85f5268542a22f3060fc02524671f01e9
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Sep 19 11:12:45 2024 -0400

    Remove unneeded variable.
---
 .../saml/saml2/profile/impl/ProcessAssertionsForAuthentication.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/saml2/profile/impl/ProcessAssertionsForAuthentication.java b/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/saml2/profile/impl/ProcessAssertionsForAuthentication.java
index 75dc6cef1..6757519a5 100644
--- a/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/saml2/profile/impl/ProcessAssertionsForAuthentication.java
+++ b/idp-saml-impl/src/main/java/net/shibboleth/idp/saml/saml2/profile/impl/ProcessAssertionsForAuthentication.java
@@ -306,8 +306,7 @@ public class ProcessAssertionsForAuthentication extends AbstractAuthenticationAc
 
             samlAuthnContext.setAuthnStatement(statement);
             
-            final XMLObject parent = statement.getParent();
-            if (parent instanceof Assertion assertion) {
+            if (statement.getParent() instanceof Assertion assertion) {
                 samlAuthnContext.setSubject(assertion.getSubject());
             }
         }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list