diff options
Diffstat (limited to 'lib/gitlab/sherlock/query.rb')
-rw-r--r-- | lib/gitlab/sherlock/query.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/sherlock/query.rb b/lib/gitlab/sherlock/query.rb index 4917c4ae2ac..086fcddf721 100644 --- a/lib/gitlab/sherlock/query.rb +++ b/lib/gitlab/sherlock/query.rb @@ -94,10 +94,10 @@ module Gitlab private def raw_explain(query) - if Gitlab::Database.postgresql? - explain = "EXPLAIN ANALYZE #{query};" + explain = if Gitlab::Database.postgresql? + "EXPLAIN ANALYZE #{query};" else - explain = "EXPLAIN #{query};" + "EXPLAIN #{query};" end ActiveRecord::Base.connection.execute(explain) |