From 37839d820d8b651f1dd32d3343b25738f7d39662 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 20:04:31 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/dvc_task/app/filesystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dvc_task/app/filesystem.py b/src/dvc_task/app/filesystem.py index 135089e..16a4cab 100644 --- a/src/dvc_task/app/filesystem.py +++ b/src/dvc_task/app/filesystem.py @@ -247,7 +247,7 @@ def _delete_expired( headers = cast(Dict[str, Any], msg.headers) expires: Optional[float] = headers.get("expires") ticket = msg.headers.get("ticket") - if include_tickets and ticket or (expires is not None and expires <= now): + if (include_tickets and ticket) or (expires is not None and expires <= now): assert msg.delivery_tag try: self._delete_msg(msg.delivery_tag, [], cache)