From f808dfb2ccd6e01ec8a9b8e3532b92d151a13528 Mon Sep 17 00:00:00 2001 From: novokrest Date: Tue, 5 Jun 2018 02:01:39 +0300 Subject: [PATCH] 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. --- zulip_bots/zulip_bots/bots/dropbox_share/dropbox_share.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/zulip_bots/zulip_bots/bots/dropbox_share/dropbox_share.py b/zulip_bots/zulip_bots/bots/dropbox_share/dropbox_share.py index c1e9223..214481a 100644 --- a/zulip_bots/zulip_bots/bots/dropbox_share/dropbox_share.py +++ b/zulip_bots/zulip_bots/bots/dropbox_share/dropbox_share.py @@ -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)