Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix codeclimate issues

jxltoma17fd41e806b
diff --git a/saleor/graphql/views.py b/saleor/graphql/views.py
index 736ff00fc4..94eac6823d 100644
--- a/saleor/graphql/views.py
+++ b/saleor/graphql/views.py
@@ -49,7 +49,8 @@ class GraphQLView(View):
if settings.DEBUG:
return render_to_response('graphql/playground.html')
return HttpResponseNotAllowed(['OPTIONS', 'POST'])
- elif request.method == 'OPTIONS':
+
+ if request.method == 'OPTIONS':
response = self.options(request, *args, **kwargs)
elif request.method == 'POST':
response = self.handle_query(request, *args, **kwargs)