Skip to content

Commit 87aab6c

Browse files
committed
cleanup
1 parent 264e4dc commit 87aab6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyeudiw/trust/handler/direct_trust_jar.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ def _extract_and_update_own_trust_material(self, trust_source: TrustSourceData)
5151
def extract_and_update_trust_materials(
5252
self, issuer: str, trust_source: TrustSourceData
5353
) -> TrustSourceData:
54+
if issuer == self.client_id:
55+
return self._extract_and_update_own_trust_material(trust_source)
5456
# In the context of an OID4VP protocol flow, no-one but ourself
5557
# can be trusted as a JAR issuer. As long as this is true, we have
5658
# no reason to collect other parties JAR trust material.
57-
if issuer != self.client_id:
58-
return trust_source
59-
return self._extract_and_update_own_trust_material(trust_source)
59+
return trust_source
6060

6161
def get_metadata(
6262
self, issuer: str, trust_source: TrustSourceData

0 commit comments

Comments
 (0)