Removed local variable
authorThierry Florac <thierry.florac@onf.fr>
Thu, 20 Sep 2018 14:40:22 +0200
changeset 107 2294ca6f68ee
parent 106 5409ce8b714a
child 108 4390a61cab61
Removed local variable
src/pyams_media/zmi/video.py
--- a/src/pyams_media/zmi/video.py	Thu Sep 20 14:33:50 2018 +0200
+++ b/src/pyams_media/zmi/video.py	Thu Sep 20 14:40:22 2018 +0200
@@ -142,8 +142,7 @@
     def get_ajax_output(self, changes):
         translate = self.request.localizer.translate
         if changes:
-            thumbnails = IThumbnails(self.context)
-            thumbnail = thumbnails.get_thumbnail('128x128')
+            thumbnail = IThumbnails(self.context).get_thumbnail('128x128')
             return {
                 'status': 'success',
                 'message': translate(_("Thumbnail selected successfully.")),