Removed unnecessary type check.

This commit is contained in:
Fabio Caccamo 2020-02-21 13:54:33 +01:00
parent a7aa531d54
commit 28a58aa5d7
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class Base64CoreSerializer(AbstractSerializer):
if encoding:
value = value.encode(encoding)
value = base64.b64decode(value)
if encoding and type_util.is_string(value):
if encoding:
return value.decode(encoding)
return value