diff options
author | Dan Callahan <danc@element.io> | 2021-05-14 10:58:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-14 10:58:57 +0100 |
commit | ebdef256b36ec67a8aac9721eea8971dd5cf361f (patch) | |
tree | f213058ee08615c1b03acc03325476806c7e39fd /synapse/config | |
parent | Simplify exception handling in is_ascii. (#9985) (diff) | |
download | synapse-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 'synapse/config')
-rw-r--r-- | synapse/config/registration.py | 2 |
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)) |