refactor: fix some not x in y and not x not in y

This commit is contained in:
UpstreamData
2024-01-16 08:36:31 -07:00
parent 5327b3fe3d
commit 468134e754
8 changed files with 21 additions and 15 deletions

View File

@@ -132,7 +132,7 @@ class BaseMinerRPCAPI:
async def _handle_multicommand(self, command: str, allow_warning: bool = True):
try:
data = await self.send_command(command, allow_warning=allow_warning)
if not "+" in command:
if "+" not in command:
return {command: [data]}
return data