remove unneeded variable

This commit is contained in:
Laura Klünder 2017-05-16 14:51:16 +02:00
parent 4f2861308a
commit b09cc2cf56

View file

@ -15,7 +15,6 @@ def nicer_renderer(self, data, accepted_media_type=None, renderer_context=None):
if isinstance(data, (list, tuple)):
shorten_limit = 5 if any(('geometry' in item) for item in data[:50]) else 50
shorten = isinstance(data, (list, tuple)) and len(data) > shorten_limit
orig_len = None
if shorten:
remaining_len = len(data)-shorten_limit
data = data[:shorten_limit]