Keep 'if' above same as before, fix lint issue

This commit is contained in:
lilac-supernova-2 2023-08-26 00:32:57 -04:00 committed by GitHub
parent ad447d94a2
commit 0e1b6051ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):