mirror of
https://github.com/element-hq/synapse.git
synced 2026-04-29 01:47:16 +00:00
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>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Simplify a few helper functions.
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user