summary refs log tree commit diff
path: root/synapse/config/registration.py
diff options
context:
space:
mode:
authorDan Callahan <danc@element.io>2021-05-14 10:58:57 +0100
committerGitHub <noreply@github.com>2021-05-14 10:58:57 +0100
commitebdef256b36ec67a8aac9721eea8971dd5cf361f (patch)
treef213058ee08615c1b03acc03325476806c7e39fd /synapse/config/registration.py
parentSimplify exception handling in is_ascii. (#9985) (diff)
downloadsynapse-ebdef256b36ec67a8aac9721eea8971dd5cf361f.tar.xz
Remove superfluous call to bool() (#9986)
Our strtobool already returns a bool, so no need to re-cast here

Signed-off-by: Dan Callahan <danc@element.io>
Diffstat (limited to '')
-rw-r--r--synapse/config/registration.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/config/registration.py b/synapse/config/registration.py
index e6f52b4f40..d9dc55a0c3 100644
--- a/synapse/config/registration.py
+++ b/synapse/config/registration.py
@@ -349,4 +349,4 @@ class RegistrationConfig(Config):
 
     def read_arguments(self, args):
         if args.enable_registration is not None:
-            self.enable_registration = bool(strtobool(str(args.enable_registration)))
+            self.enable_registration = strtobool(str(args.enable_registration))