mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
Remove unnecessary None check
This commit is contained in:
parent
eb5a7c7c28
commit
b74751060c
|
@ -291,8 +291,6 @@ class BaseSerializer(WritableField):
|
|||
"""
|
||||
Get the corresponding object to deserialize the data into.
|
||||
"""
|
||||
if self.unused_objects is None: return None
|
||||
|
||||
# Just get the first object in the list.
|
||||
if self.unused_objects:
|
||||
obj = self.unused_objects[0]
|
||||
|
|
Loading…
Reference in New Issue
Block a user