Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Simplify process_response

Roland Geiderf741355b2944
diff --git a/wger/utils/middleware.py b/wger/utils/middleware.py
index 1c7d90fc2..a44e90ec4 100644
--- a/wger/utils/middleware.py
+++ b/wger/utils/middleware.py
@@ -101,9 +101,7 @@ class RobotsExclusionMiddleware(object):
# Don't set it if it's already in the response
if check_current_request(request) and response.get('X-Robots-Tag', None) is None:
response['X-Robots-Tag'] = 'noindex, nofollow'
- return response
- else:
- return response
+ return response
class JavascriptAJAXRedirectionMiddleware(object):