dropbox_share: Remove unreachable elif
branch.
Remove unReachable `elif` branch from `dbx_command` method with checking whether the command is equal to `help` because this check is performed at the beginning of the method.
This commit is contained in:
parent
97b2a12d21
commit
f808dfb2cc
|
@ -96,8 +96,6 @@ def dbx_command(client: Any, cmd: str) -> str:
|
||||||
m = re.match(regex, cmd_args)
|
m = re.match(regex, cmd_args)
|
||||||
if m:
|
if m:
|
||||||
return f(client, *m.groups())
|
return f(client, *m.groups())
|
||||||
elif cmd_name == 'help':
|
|
||||||
return get_help()
|
|
||||||
else:
|
else:
|
||||||
return 'ERROR: ' + syntax_help(cmd_name)
|
return 'ERROR: ' + syntax_help(cmd_name)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue