Fixed linter issue.

This commit is contained in:
Simon Prickett 2022-01-13 17:10:51 +00:00
parent 7fa62da881
commit 275aff2902

View file

@ -7,7 +7,7 @@ from aredis_om.connections import get_redis_connection
@lru_cache(maxsize=None) @lru_cache(maxsize=None)
async def check_for_command(conn, cmd): async def check_for_command(conn, cmd):
cmd_info = await conn.execute_command("command", "info", cmd) cmd_info = await conn.execute_command("command", "info", cmd)
return not None in cmd_info return None not in cmd_info
@lru_cache(maxsize=None) @lru_cache(maxsize=None)