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:
Dan Callahan 2021-05-14 10:58:57 +01:00 committed by GitHub
parent bd918d874f
commit ebdef256b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/9986.misc Normal file
View File

@ -0,0 +1 @@
Simplify a few helper functions.

View File

@ -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))