From b74751060cc7465a075cf7958c1fa2720af325d0 Mon Sep 17 00:00:00 2001 From: Mark Aaron Shirley Date: Sat, 2 Mar 2013 10:15:43 -0800 Subject: [PATCH] Remove unnecessary None check --- rest_framework/serializers.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py index f3e89abab..ce28d0b93 100644 --- a/rest_framework/serializers.py +++ b/rest_framework/serializers.py @@ -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]