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 | |
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>
-rw-r--r-- | changelog.d/9986.misc | 1 | ||||
-rw-r--r-- | synapse/config/registration.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/9986.misc b/changelog.d/9986.misc new file mode 100644 index 0000000000..97bd747f26 --- /dev/null +++ b/changelog.d/9986.misc @@ -0,0 +1 @@ +Simplify a few helper functions. 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)) |