From 0e1b6051ff98b321e2f3ba929d1fb57ab6d23b5a Mon Sep 17 00:00:00 2001 From: lilac-supernova-2 <143229315+lilac-supernova-2@users.noreply.github.com> Date: Sat, 26 Aug 2023 00:32:57 -0400 Subject: [PATCH] Keep 'if' above same as before, fix lint issue --- graphene_django/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphene_django/views.py b/graphene_django/views.py index d885ee9..de5dfab 100644 --- a/graphene_django/views.py +++ b/graphene_django/views.py @@ -101,10 +101,10 @@ class GraphQLView(View): subscription_path=None, execution_context_class=None, ): - if schema is None: + if not schema: schema = graphene_settings.SCHEMA self.schema = schema or self.schema - + if middleware is None: middleware = graphene_settings.MIDDLEWARE if isinstance(middleware, MiddlewareManager):