Skip to content

Commit

Permalink
remove duplicate check for None on DEVELOPMENT
Browse files Browse the repository at this point in the history
  • Loading branch information
megascatterbomb committed Sep 24, 2024
1 parent bb63a16 commit f0a65a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion masterbase/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def provision(request: Request) -> Redirect:
# enforce https on base_url
base_url = str(request.base_url)
dev_mode = os.getenv('DEVELOPMENT', 'false')
proto = "http://" if dev_mode is not None and dev_mode.lower() == 'true' else "https://"
proto = "http://" if dev_mode.lower() == 'true' else "https://"
base_url = proto + base_url.split("//")[-1]

auth_params = {
Expand Down

0 comments on commit f0a65a7

Please sign in to comment.