Skip to content

Commit

Permalink
chore(fix): useless variable assignments since f59580c
Browse files Browse the repository at this point in the history
  • Loading branch information
EDM115 committed Sep 18, 2024
1 parent e053fc7 commit 73e34c9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions unzipper/helpers/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,8 @@ def removal(firststart=False):


async def remove_expired_tasks(firststart=False):
value = firststart
ongoing_tasks = await get_ongoing_tasks()
if value:
if firststart:
await clear_ongoing_tasks()
try:
shutil.rmtree(Config.DOWNLOAD_LOCATION)
Expand Down Expand Up @@ -168,8 +167,6 @@ async def remove_expired_tasks(firststart=False):
),
)

value = firststart = False


@aiocron.crontab("*/5 * * * *")
async def scheduled_remove_expired_tasks():
Expand Down

0 comments on commit 73e34c9

Please sign in to comment.