From acdcfd04cd709915dbf6deae3f48144a9cda6ad6 Mon Sep 17 00:00:00 2001 From: UpstreamData Date: Tue, 16 Jan 2024 15:34:06 -0700 Subject: [PATCH] refactor: remove unneeded lambda and remove pass. --- pyasic/miners/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyasic/miners/base.py b/pyasic/miners/base.py index 0ce7c388..21d64ca3 100644 --- a/pyasic/miners/base.py +++ b/pyasic/miners/base.py @@ -206,7 +206,7 @@ class MinerProtocol(Protocol): try: async with conn: resp = await conn.run(cmd) - result = max(resp.stdout, resp.stderr, key=lambda x: len(x)) + result = str(max(resp.stdout, resp.stderr, key=len)) return result except Exception as e: @@ -264,7 +264,7 @@ class MinerProtocol(Protocol): config: A [`MinerConfig`][pyasic.config.MinerConfig] containing the mining config you want to switch the miner to. user_suffix: A suffix to append to the username when sending to the miner. """ - pass + return None async def stop_mining(self) -> bool: """Stop the mining process of the miner.