Skip to content

Commit e2af045

Browse files
committed
fix: cleanup useless code in joserfc.util
1 parent 28f584a commit e2af045

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/joserfc/util.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ def urlsafe_b64decode(s: bytes) -> bytes:
3333
safe_ending = (b"AEIMQUYcgkosw048", b"AQgw")
3434
if pad and s[-1] not in safe_ending[pad - 1]:
3535
raise binascii.Error
36-
if pad == 2 and s[-1] not in b"AQgw":
37-
raise binascii.Error
3836

3937
s += b"=" * pad
4038
return base64.b64decode(s, b"-_", validate=True)

0 commit comments

Comments
 (0)