Commit 4822f7db by Clinton Blackburn

Removed noop assignments

ECOM-4266
parent fd8e2587
...@@ -120,7 +120,6 @@ class OrganizationsApiDataLoader(AbstractDataLoader): ...@@ -120,7 +120,6 @@ class OrganizationsApiDataLoader(AbstractDataLoader):
image = None image = None
image_url = body['logo'] image_url = body['logo']
if image_url: if image_url:
image_url = image_url
image, __ = Image.objects.get_or_create(src=image_url) image, __ = Image.objects.get_or_create(src=image_url)
defaults = { defaults = {
'name': body['name'], 'name': body['name'],
...@@ -209,7 +208,6 @@ class CoursesApiDataLoader(AbstractDataLoader): ...@@ -209,7 +208,6 @@ class CoursesApiDataLoader(AbstractDataLoader):
image_url = body['media'].get('image', {}).get('raw') image_url = body['media'].get('image', {}).get('raw')
if image_url: if image_url:
image_url = image_url
image, __ = Image.objects.get_or_create(src=image_url) image, __ = Image.objects.get_or_create(src=image_url)
return image return image
...@@ -219,7 +217,6 @@ class CoursesApiDataLoader(AbstractDataLoader): ...@@ -219,7 +217,6 @@ class CoursesApiDataLoader(AbstractDataLoader):
video_url = body['media'].get('course_video', {}).get('uri') video_url = body['media'].get('course_video', {}).get('uri')
if video_url: if video_url:
video_url = video_url
video, __ = Video.objects.get_or_create(src=video_url) video, __ = Video.objects.get_or_create(src=video_url)
return video return video
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment