summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-07-31 18:19:18 -0500
committerMike Greiling <mike@pixelcog.com>2017-07-31 18:19:18 -0500
commit08c513b6d95c34d96bcc779f4c10318fafda2cb7 (patch)
tree3bc15ed755681166afc49b6179ed78294f493f44
parent1b9b6974fdfb49f10dfdd4bddde05aa8399ff9b1 (diff)
downloadgitlab-ce-08c513b6d95c34d96bcc779f4c10318fafda2cb7.tar.gz
fix rubocop violations 👮
-rw-r--r--lib/gitlab/contributions_calendar.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/contributions_calendar.rb b/lib/gitlab/contributions_calendar.rb
index aa261929fa9..0735243e021 100644
--- a/lib/gitlab/contributions_calendar.rb
+++ b/lib/gitlab/contributions_calendar.rb
@@ -70,10 +70,10 @@ module Gitlab
.and(t[:author_id].eq(contributor.id))
date_interval = if Gitlab::Database.postgresql?
- "INTERVAL '#{Time.zone.now.utc_offset} seconds'"
- else
- "INTERVAL #{Time.zone.now.utc_offset} SECOND"
- end
+ "INTERVAL '#{Time.zone.now.utc_offset} seconds'"
+ else
+ "INTERVAL #{Time.zone.now.utc_offset} SECOND"
+ end
Event.reorder(nil)
.select(t[:project_id], t[:target_type], t[:action], "date(created_at + #{date_interval}) AS date", 'count(id) as total_amount')