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 "