From 231a9f5b8788aa0bbb2fa304f8b937f7c09fcee1 Mon Sep 17 00:00:00 2001 From: Timothy Andrew Date: Tue, 20 Sep 2016 18:21:59 +0530 Subject: Fix rubocop spec. And `scss_lint` --- lib/gitlab/database/median.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'lib') 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)) -- cgit v1.2.1