Commit 8feb5180 authored by Alex Kalderimis's avatar Alex Kalderimis

Prefer Gitlab.dev_or_test_env? to Rails.env predicates

parent 8d8ff533
......@@ -21,9 +21,7 @@ module Types
super(**kwargs, &block)
# We want to avoid the overhead of this in prod
unless Rails.env.production?
extension ::Gitlab::Graphql::CallsGitaly::FieldExtension
end
extension ::Gitlab::Graphql::CallsGitaly::FieldExtension if Gitlab.dev_or_test_env?
end
def may_call_gitaly?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment