Skip to content
This repository was archived by the owner on Jul 6, 2026. It is now read-only.

Commit d4b76b0

Browse files
committed
bug: fix dead code in luxminer _get_mac and _get_hashrate
Remove erroneous 'return None' statements placed outside except blocks, making all subsequent logic unreachable. Same pattern was already fixed for _get_wattage in 63bf0cd.
1 parent 4e04ca9 commit d4b76b0

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

pyasic/miners/backends/luxminer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ async def _get_mac(self, rpc_config: dict | None = None) -> str | None:
233233
rpc_config = await self.rpc.config()
234234
except APIError:
235235
pass
236-
return None
237236

238237
if rpc_config is not None:
239238
try:
@@ -249,7 +248,6 @@ async def _get_hashrate(
249248
rpc_summary = await self.rpc.summary()
250249
except APIError:
251250
pass
252-
return None
253251

254252
if rpc_summary is not None:
255253
try:

0 commit comments

Comments
 (0)