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:
novokrest 2018-06-05 02:01:39 +03:00 committed by Tim Abbott
parent 97b2a12d21
commit f808dfb2cc

View file

@ -96,8 +96,6 @@ def dbx_command(client: Any, cmd: str) -> str:
m = re.match(regex, cmd_args)
if m:
return f(client, *m.groups())
elif cmd_name == 'help':
return get_help()
else:
return 'ERROR: ' + syntax_help(cmd_name)