From 9870a6d906f0aa53e5a6eb0facf60089393c619b Mon Sep 17 00:00:00 2001 From: almaz amanzholuly Date: Sun, 24 Mar 2024 12:32:30 +0500 Subject: [PATCH] clean-up --- django/core/checks/caches.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/django/core/checks/caches.py b/django/core/checks/caches.py index a98da2c822..8983d6f26c 100644 --- a/django/core/checks/caches.py +++ b/django/core/checks/caches.py @@ -60,10 +60,7 @@ def check_file_based_cache_is_absolute(app_configs, **kwargs): alias_name = alias location = config.get("LOCATION") - if ( - location is not None - and not pathlib.Path(location).is_absolute() - ): + if location is not None and not pathlib.Path(location).is_absolute(): return [ Warning( f"Your '{alias_name}' cache LOCATION path is relative. Use an "