[mod] remove unused variable

This commit is contained in:
Laurent Peuch 2018-08-05 20:29:10 +02:00
parent fbfbe44cd5
commit 05e1be86c6

View file

@ -242,20 +242,17 @@ def domain_url_available(auth, domain, path):
apps_map = app_map(raw=True) apps_map = app_map(raw=True)
# Loop through all apps to check if path is taken by one of them # Loop through all apps to check if path is taken by one of them
available = True
if domain in apps_map: if domain in apps_map:
# Loop through apps # Loop through apps
for p, a in apps_map[domain].items(): for p, a in apps_map[domain].items():
if path == p: if path == p:
available = False return False
break
# We also don't want conflicts with other apps starting with # We also don't want conflicts with other apps starting with
# same name # same name
elif path.startswith(p) or p.startswith(path): elif path.startswith(p) or p.startswith(path):
available = False return False
break
return available return True
def _get_maindomain(): def _get_maindomain():