Skip to content

Commit

Permalink
pylint: Remove one "no-else-return"
Browse files Browse the repository at this point in the history
  • Loading branch information
Synss committed May 24, 2020
1 parent fb9cedb commit 3460934
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mbedtls/cipher/AES.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,4 @@ def new(key, mode, iv=None, ad=None):
).encode("ascii")
if mode in {_cipher.Mode.GCM, _cipher.Mode.CCM}:
return _cipher.AEADCipher(name, key, mode, iv, ad)
else:
return _cipher.Cipher(name, key, mode, iv)
return _cipher.Cipher(name, key, mode, iv)

0 comments on commit 3460934

Please sign in to comment.