summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Hunt <will@half-shot.uk>2018-05-08 15:31:53 +0100
committerGitHub <noreply@github.com>2018-05-08 15:31:53 +0100
commitfee045001a3de4dcda77a70099acc89acd507aec (patch)
treeedff2bf76d97635f2c3a899367925a5f86a1a4bb
parentMake MediaLimitsResource Leafy (diff)
downloadsynapse-fee045001a3de4dcda77a70099acc89acd507aec.tar.xz
Restructure __init__
-rw-r--r--synapse/rest/media/v1/limits_resource.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/rest/media/v1/limits_resource.py b/synapse/rest/media/v1/limits_resource.py
index 64f41191ab..3cb5f0244b 100644
--- a/synapse/rest/media/v1/limits_resource.py
+++ b/synapse/rest/media/v1/limits_resource.py
@@ -23,9 +23,10 @@ class MediaLimitsResource(Resource):
 
     def __init__(self, hs):
         Resource.__init__(self)
-        self.limits_dict = {}
         config = hs.get_config()
-        self.limits_dict["upload_size"] = config.max_upload_size
+        self.limits_dict = {
+            "upload_size": config.max_upload_size,
+        }
 
     def render_GET(self, request):
         respond_with_json(request, 200, self.limits_dict, send_cors=True)