Removed unnecessary type check.
This commit is contained in:
parent
a7aa531d54
commit
28a58aa5d7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue