Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-10-12 16:34:08 +0300
committerDouwe Maan <douwe@gitlab.com>2015-10-12 16:34:08 +0300
commit7a0cc665ff5ad3969f36082baa162a2169c34612 (patch)
tree68fae074916b257155fc481885e2423fe68594c6
parent41075bad8daeed07bceaa44cbfe54ab1b470ca87 (diff)
Remove useless assignment
-rw-r--r--app/models/concerns/participable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/participable.rb b/app/models/concerns/participable.rb
index 22182445978..ffc874357fd 100644
--- a/app/models/concerns/participable.rb
+++ b/app/models/concerns/participable.rb
@@ -38,7 +38,7 @@ module Participable
# Be aware that this method makes a lot of sql queries.
# Save result into variable if you are going to reuse it inside same request
def participants(current_user = self.author)
- participants = self.class.participant_attrs.flat_map do |attr|
+ self.class.participant_attrs.flat_map do |attr|
meth = method(attr)
value =