Skip to content

Commit

Permalink
remove a superfluous parameter in function run_cmdline
Browse files Browse the repository at this point in the history
The function does not use the argument `result`, and it is undefined
when it is passed to the function.
  • Loading branch information
PiRK committed Dec 30, 2020
1 parent 5608df2 commit d4a55dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions electron-cash
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def run_daemon(config, config_options):
sys.exit(1)


def run_cmdline(config, config_options, cmdname, result):
def run_cmdline(config, config_options, cmdname):
"""Run Electron Cash in command line mode"""
server = daemon.get_server(config)
init_cmdline(config_options, server)
Expand Down Expand Up @@ -566,7 +566,7 @@ def main():
elif cmdname == "daemon":
result = run_daemon(config, config_options)
else:
result = run_cmdline(config, config_options, cmdname, result)
result = run_cmdline(config, config_options, cmdname)

# print result
print_result(result)
Expand Down

0 comments on commit d4a55dd

Please sign in to comment.