mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +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:
parent
bd918d874f
commit
ebdef256b3
2 changed files with 2 additions and 1 deletions
1
changelog.d/9986.misc
Normal file
1
changelog.d/9986.misc
Normal file
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue