Skip to content

Commit

Permalink
Remove variable assigned two times
Browse files Browse the repository at this point in the history
  • Loading branch information
armanddidierjean committed Aug 3, 2024
1 parent c632134 commit d1d6708
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/modules/raffle/endpoints_raffle.py
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ async def edit_cash_by_id(
detail="The user don't have a cash.",
)

redis_key = redis_key = "raffle_" + user_id
redis_key = "raffle_" + user_id

if not isinstance(redis_client, Redis) or locker_get(
redis_client=redis_client,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@pytest_asyncio.fixture(scope="module", autouse=True)
async def init_objects() -> None:
global user
user = user = await create_user_with_groups(
user = await create_user_with_groups(
groups=[],
email="[email protected]",
password="azerty",
Expand Down

0 comments on commit d1d6708

Please sign in to comment.