summaryrefslogtreecommitdiff
path: root/lib/api/helpers/graphql_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/helpers/graphql_helpers.rb')
-rw-r--r--lib/api/helpers/graphql_helpers.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/api/helpers/graphql_helpers.rb b/lib/api/helpers/graphql_helpers.rb
index 94010ab1bc2..bd60470fbd6 100644
--- a/lib/api/helpers/graphql_helpers.rb
+++ b/lib/api/helpers/graphql_helpers.rb
@@ -7,8 +7,6 @@ module API
# should be in app/graphql/ or lib/gitlab/graphql/
module GraphqlHelpers
def conditionally_graphql!(fallback:, query:, context: {}, transform: nil)
- return fallback.call unless Feature.enabled?(:graphql)
-
result = GitlabSchema.execute(query, context: context)
if transform