Skip to content

Commit 337b0ca

Browse files
author
Roland Hedberg
committed
Simpler logic.
1 parent ddd0403 commit 337b0ca

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/jwkest/jwk.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -738,9 +738,8 @@ def as_dict(self):
738738
_res = {}
739739
for kty, k in [(k.kty, k) for k in self._keys]:
740740
if kty not in ["RSA", "EC", "oct"]:
741-
kty = kty.upper()
742-
if kty in ["RSA", "EC"]:
743-
pass
741+
if kty in ["rsa", "ec"]:
742+
kty = kty.upper()
744743
else:
745744
kty = kty.lower()
746745

0 commit comments

Comments
 (0)