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
|
@ -0,0 +1 @@
|
||||||
|
Simplify a few helper functions.
|
|
@ -349,4 +349,4 @@ class RegistrationConfig(Config):
|
||||||
|
|
||||||
def read_arguments(self, args):
|
def read_arguments(self, args):
|
||||||
if args.enable_registration is not None:
|
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 New Issue