summary refs log tree commit diff
path: root/synapse/rest/media/v1
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-10-13 13:46:53 +0100
committerErik Johnston <erik@matrix.org>2017-10-13 13:46:53 +0100
commitc021c39cbd0bf1f0a85c9699275600ac35aa9ec4 (patch)
treec2855f89bf92076a30766f65c0cd023e225e6b69 /synapse/rest/media/v1
parentDon't needlessly rename variable (diff)
downloadsynapse-c021c39cbd0bf1f0a85c9699275600ac35aa9ec4.tar.xz
Remove spurious addition
Diffstat (limited to 'synapse/rest/media/v1')
-rw-r--r--synapse/rest/media/v1/media_repository.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/synapse/rest/media/v1/media_repository.py b/synapse/rest/media/v1/media_repository.py
index f06813c48c..3b8fe5ddb4 100644
--- a/synapse/rest/media/v1/media_repository.py
+++ b/synapse/rest/media/v1/media_repository.py
@@ -380,8 +380,6 @@ class MediaRepository(object):
         ))
 
         if t_byte_source:
-            t_width, t_height = t_byte_source.dimensions
-
             output_path = yield self.write_to_file_and_backup(
                 t_byte_source,
                 self.filepaths.local_media_thumbnail_rel(
@@ -410,8 +408,6 @@ class MediaRepository(object):
         ))
 
         if t_byte_source:
-            t_width, t_height = t_byte_source.dimensions
-
             output_path = yield self.write_to_file_and_backup(
                 t_byte_source,
                 self.filepaths.remote_media_thumbnail_rel(