removed unnecessary else
This commit is contained in:
parent
20b2f183ce
commit
aa1ca433a4
1 changed files with 1 additions and 9 deletions
10
server.py
10
server.py
|
@ -62,12 +62,4 @@ elif args.dynamic == 'off':
|
|||
disable_dynamic_fan_control()
|
||||
|
||||
if not (args.power or args.fan or args.dynamic):
|
||||
parser.print_help()
|
||||
else:
|
||||
if args.power == 'on':
|
||||
power_on()
|
||||
elif args.power == 'off':
|
||||
power_off()
|
||||
pass
|
||||
if args.fan is not None:
|
||||
set_fan_speed(args.fan)
|
||||
parser.print_help()
|
Loading…
Reference in a new issue