summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-09-20 18:21:59 +0530
committerTimothy Andrew <mail@timothyandrew.net>2016-09-20 18:26:31 +0530
commit231a9f5b8788aa0bbb2fa304f8b937f7c09fcee1 (patch)
treefbaebf9301e8352a750af0939b3fc1ac8a231093 /lib
parent71d4bf721be6cd57ab3480bc5efb11a91d6e1891 (diff)
downloadgitlab-ce-231a9f5b8788aa0bbb2fa304f8b937f7c09fcee1.tar.gz
Fix rubocop spec.
And `scss_lint`
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/database/median.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/gitlab/database/median.rb b/lib/gitlab/database/median.rb
index 21b4c043655..94f060bd2c7 100644
--- a/lib/gitlab/database/median.rb
+++ b/lib/gitlab/database/median.rb
@@ -27,12 +27,11 @@ module Gitlab
from(arel_table.project(Arel.sql('*')).order(arel_table[column_sym]).as(arel_table.table_name)).
project(average([arel_table[column_sym]], 'median')).
where(Arel::Nodes::Between.new(
- Arel.sql("(select @row_id := @row_id + 1)"),
- Arel::Nodes::And.new(
- [Arel.sql('@ct/2.0'),
- Arel.sql('@ct/2.0 + 1')]
- )
- )).
+ Arel.sql("(select @row_id := @row_id + 1)"),
+ Arel::Nodes::And.new(
+ [Arel.sql('@ct/2.0'),
+ Arel.sql('@ct/2.0 + 1')]
+ ))).
# Disallow negative values
where(arel_table[column_sym].gteq(0))