From 03594a2d0e977a971c1ee59c14dcd16f589e5513 Mon Sep 17 00:00:00 2001 From: meejah Date: Wed, 22 Jun 2016 01:28:53 -0600 Subject: [PATCH] consistent return usage --- src/wormhole/cli/cli.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/wormhole/cli/cli.py b/src/wormhole/cli/cli.py index 4085889..03d8cd5 100644 --- a/src/wormhole/cli/cli.py +++ b/src/wormhole/cli/cli.py @@ -177,7 +177,7 @@ def send(cfg, what, text, code, zeromode): cfg.zeromode = zeromode cfg.code = code - react(_dispatch_command, (cfg, lambda: cmd_send.send(cfg))) + return react(_dispatch_command, (cfg, lambda: cmd_send.send(cfg))) # wormhole receive (or "wormhole rx") @@ -227,5 +227,4 @@ def receive(cfg, code, zeromode, output_file, accept_file, only_text): else: cfg.code = None - react(_dispatch_command, (cfg, lambda: cmd_receive.receive(cfg))) - return + return react(_dispatch_command, (cfg, lambda: cmd_receive.receive(cfg)))