Skip to content

Commit

Permalink
Fix ruff error
Browse files Browse the repository at this point in the history
  • Loading branch information
SeoulSKY committed Sep 10, 2024
1 parent 25ade79 commit 4f94fd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ytnoti/models/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ async def _truncate(self, channel: Channel) -> None:
if not await ospath.exists(path):
return

async with aiofiles.open(path, "r", encoding="utf-8") as file:
async with aiofiles.open(path, encoding="utf-8") as file:
lines = await file.readlines()

async with aiofiles.open(path, "w", encoding="utf-8") as file:
Expand Down Expand Up @@ -149,7 +149,7 @@ async def has(self, video: Video) -> bool:
if not await ospath.exists(path):
return False

async with aiofiles.open(path, "r", encoding="utf-8") as file:
async with aiofiles.open(path, encoding="utf-8") as file:
async for line in file:
if line.strip() == video.id:
return True
Expand Down

0 comments on commit 4f94fd0

Please sign in to comment.