mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
elif is better than else if!
This commit is contained in:
parent
726c16ab70
commit
74a5caa7fc
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ def update_yml(port=None, protocol=None, mode=None, ipv6=None, upnp=False):
|
||||||
if port not in firewall[ip][protocol]:
|
if port not in firewall[ip][protocol]:
|
||||||
firewall[ip][protocol].append(port)
|
firewall[ip][protocol].append(port)
|
||||||
|
|
||||||
else if upnp:
|
elif upnp:
|
||||||
if port not in firewall[ip]['upnp'][protocol]:
|
if port not in firewall[ip]['upnp'][protocol]:
|
||||||
firewall[ip]['upnp'][protocol].append(port)
|
firewall[ip]['upnp'][protocol].append(port)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue