Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Remove superfluous call to bool() (#9986)
Browse files Browse the repository at this point in the history
Our strtobool already returns a bool, so no need to re-cast here

Signed-off-by: Dan Callahan <[email protected]>
  • Loading branch information
callahad authored May 14, 2021
1 parent bd918d8 commit ebdef25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/9986.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Simplify a few helper functions.
2 changes: 1 addition & 1 deletion synapse/config/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,4 +349,4 @@ def add_arguments(parser):

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

0 comments on commit ebdef25

Please sign in to comment.