mik-laj commented on a change in pull request #5587: [AIRFLOW-4953] Remove 
unused variables in core
URL: https://github.com/apache/airflow/pull/5587#discussion_r303360263
 
 

 ##########
 File path: airflow/www/app.py
 ##########
 @@ -80,8 +80,7 @@ def create_app(config=None, session=None, testing=False, 
app_name="Airflow"):
     api.load_auth()
     api.API_AUTH.api_auth.init_app(app)
 
-    # flake8: noqa: F841
-    cache = Cache(app=app, config={'CACHE_TYPE': 'filesystem', 'CACHE_DIR': 
'/tmp'})
+    Cache(app=app, config={'CACHE_TYPE': 'filesystem', 'CACHE_DIR': '/tmp'})
 
 Review comment:
   Yes. There are still references to this object. GC will not delete this 
object.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to