tRemove unreachable code - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit a90c93575891e5815d5a448aab3daa5c3f919a58 DIR parent 2980b580a753ae43dbf26ac4694178f1dc615424 HTML Author: Neil Booth <kyuupichan@gmail.com> Date: Sun, 31 Jan 2016 14:53:25 +0900 Remove unreachable code Diffstat: M lib/daemon.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) --- DIR diff --git a/lib/daemon.py b/lib/daemon.py t@@ -261,11 +261,9 @@ class Daemon(DaemonThread): fd = Daemon.get_fd_or_server(lockfile) if isinstance(fd, int): subcommand = config.get('subcommand') + assert subcommand in ['start', 'stop', 'status'] if subcommand != 'start': - if subcommand in ['status', 'stop']: - print_msg("Daemon not running") - else: - print_msg("syntax: electrum daemon <start|status|stop>") + print_msg("Daemon not running") os.close(fd) Daemon.remove_lockfile(lockfile) sys.exit(1)