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

Commit 308275f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9afdd1f commit 308275f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pyasic/miners/factory.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,8 +851,9 @@ async def _get_miner_web(self, ip: str) -> MinerTypes | None:
851851

852852
text, resp = await concurrent_get_first_result(
853853
tasks,
854-
lambda x: x[0] is not None
855-
and self._parse_web_type(x[0], x[1]) is not None,
854+
lambda x: (
855+
x[0] is not None and self._parse_web_type(x[0], x[1]) is not None
856+
),
856857
)
857858
if text is not None:
858859
mtype = self._parse_web_type(text, resp)

0 commit comments

Comments
 (0)